Pterodactyldocs
Client server network

Set primary allocation

Sets the primary allocation

POST/api/client/servers/{server}/network/allocations/{allocation}/primary

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 POST "https://example.com/api/client/servers/1a7ce997/network/allocations/1/primary"
{  "object": "allocation",  "attributes": {    "id": 2,    "ip": "45.86.168.218",    "ip_alias": null,    "port": 25566,    "notes": "Votifier",    "is_default": true  }}