Pterodactyl API v1
Network

Set allocation note

Sets a note for the allocation

Fields

NameRequired?TypeDescriptionRules
notesrequiredstringNote for allocation
POST/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

Request Body

application/json

notes*|

Response Body

application/json

curl -X POST "https://pterodactyl.file.properties/api/client/servers/1a7ce997/network/allocations/1" \  -H "Authorization: Bearer ptlc_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \  -H "Accept: application/json" \  -H "Content-Type: application/json" \  -d '{  "notes": "Votifier"}'
{
  "object": "allocation",
  "attributes": {
    "id": 2,
    "ip": "45.86.168.218",
    "ip_alias": null,
    "port": 25566,
    "notes": "Votifier",
    "is_default": false
  }
}