Network
Unassign allocation
Deletes the specified non-primary allocation
DELETE
/api/client/servers/{server}/network/allocations/{allocation}Authorization
ClientToken AuthorizationBearer <token>
Client API key (generated at /account/api)
In: header
Path Parameters
server*string
Server identifier (short 8-character ID)
allocation*integer
Allocation ID
Response Body
application/json
curl -X DELETE "https://pterodactyl.file.properties/api/client/servers/1a7ce997/network/allocations/1" \ -H "Authorization: Bearer ptlc_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \ -H "Accept: application/json"Empty
{
"errors": [
{
"code": "DisplayException",
"status": "400",
"detail": "Cannot delete the primary allocation for a server."
}
]
}