What UUID for new allocation request

I’m following along with this video by Code Monkey on game server hosting. I am wondering how to get the allocation ID required for queuing an allocation request via the HTTP API:

https://services.docs.unity.com/multiplay-gameserver/v1/index.html#tag/Allocations/operation/ProcessAllocation

My goal is to create a new allocation, so I don’t understand how I’m supposed to pass in the allocation id when it doesn’t exist yet?

Hi, theMatan123!

You, as the developer, supply the allocation UUID. You can use a tool such as uuidgenerator.net or a library. You can also use the test allocation feature to create an allocation with a UUID through the Unity Dashboard.

After you create the allocation, you can get the allocation UUID from the server.json file or the IMultiplayAllocationInfo interface from the SDK.

I hope this helps!

1 Like