Server allocate
Documentation for Server allocate
Read time 1 minuteLast updated 2 months ago
Queue an allocation request. When complete, the first unallocated game server identified by the criteria is allocated with the
<uuid>Note: Prefer the Allocate V2 endpoint.
https://api.multiplay.co.uk/cfp/v1/server/allocate
| METHOD | CONTENT TYPE |
| GET | application/x-www-form-urlencoded |
Request parameters
| VARIABLE | DESCRIPTION | OPTIONAL |
| fleetid | The | No |
| regionid | The | No |
| profileid | The | No |
| uuid | The | No |
Response fields
Field | Type | Description | Optional |
|---|---|---|---|
| profileid | integer | ID of the profile used by this server | No |
| uuid | string | ID of the allocation | No |
| regions | string | ID of regions this game server is in | No |
| created | string | Time at which the allocation was created | No |
| requested | string | Time at which the allocation was requested | No |
| ready | string | Time at which the allocation was marked as ready for players | Yes |
| fleetid | string | ID of the fleet this server is in | No |
Example request
curl --location --request POST 'https://api.multiplay.co.uk/cfp/v1/server/allocate?regionid=<regionid>&profileid=<profileid>&uuid=<uuid>&fleetid=<fleetid>' \ --header 'Authorization: Basic YOUR_AUTH_CREDENTIALS'
Example response
{ "success": true, "messages": [], "allocation": { "profileid": <profileid>, "uuid": <uuid>, "regions": <regions>, "requested": <daterequested>, "created": <datecreated>, "fleetid": <fleetid>, "ready": <status> } }