Allocations
Create allocations
Adds an allocation to the node
POST
/api/application/nodes/{node}/allocationsAuthorization
ApplicationToken AuthorizationBearer <token>
Application API key (generated at /admin/api)
In: header
Path Parameters
node*integer
Node ID
Request Body
application/json
ip*string
IP address for the allocations
ports*array<>
Ports or port ranges as strings, e.g. "25565" or "25570-25580"
alias?|
Response Body
curl -X POST "https://pterodactyl.file.properties/api/application/nodes/1/allocations" \ -H "Authorization: Bearer ptla_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \ -H "Accept: application/json" \ -H "Content-Type: application/json" \ -d '{ "ip": "10.0.0.1", "ports": [ "25565" ]}'Empty