Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Unable to Create Allocation for Multiplay Server

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

  1. ThirdPartition

    ThirdPartition

    Joined:
    Mar 5, 2019
    Posts:
    5
    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)
    upload_2023-11-29_18-4-39.png
    (Body)
    upload_2023-11-29_18-4-22.png
    (Response)
    upload_2023-11-29_18-5-2.png

    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