Network
Assign allocation
Automatically assigns a new allocation if auto-assign is enabled on the instance
POST
/api/client/servers/{server}/network/allocationsAuthorization
ClientToken AuthorizationBearer <token>
Client API key (generated at /account/api)
In: header
Path Parameters
server*string
Server identifier (short 8-character ID)
Response Body
application/json
curl -X POST "https://pterodactyl.file.properties/api/client/servers/1a7ce997/network/allocations" \ -H "Authorization: Bearer ptlc_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \ -H "Accept: application/json"{
"object": "allocation",
"attributes": {
"id": 6,
"ip": "45.86.168.218",
"ip_alias": null,
"port": 25570,
"notes": null,
"is_default": false
}
}