Unable to Create Allocation for Multiplay Server

When trying to queue an allocation for a Multiplay Server, I am receiving a response code of 400, and I am unsure why. I’ve been banging my head against a wall for the past few days trying to figure out why I am receiving this response so I figured I would reach out here after not making any progress. I have tried sending the API request both through Postman, and the Server program itself.

I am sending the request to this endpoint: https://multiplay.services.api.unity.com/v1/allocations/projects/{projectId}/environments/{environmentId}/fleets/{fleetId}/allocations

This is what the request I’m sending looks like:
(Headers)

(Body)

(Response)

I have double and triple checked to make sure that the projectId, environmentId, fleetId, buildConfigurationId, and authorization bearer token are all accurate. I have created the Bearer Token with the scopes = new[ ] { “multiplay.allocations.create”} property. I am sure the Bearer Token is working correctly because if I use a bad token I will get an Error 401 Unauthorized.

Please let me know if there is any other information I can provide!

Thanks

I just checked and the issue is that you are not providing a valid Region UUID. If you go to Fleets > [Your Fleet] > Scaling, it will show the correct UUID for the region (I see that your region assigned doesn’t match your screenshot). If you use that ID for your “regionId” value it should work. Give it a try and let me know how you get on

1 Like

This was the issue! Thanks so much for the assistance.

1 Like