Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

Question Unable to Create Allocation for Multiplay Server

Discussion in 'Multiplayer' started by ThirdPartition, Nov 30, 2023.

  1. ThirdPartition


    Mar 5, 2019
    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:{projectId}/environments/{environmentId}/fleets/{fleetId}/allocations

    This is what the request I'm sending looks like:

    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!