Pterodactyldocs
Application nodes allocations

Create allocations

Adds an allocation to the node

POST/api/application/nodes/{node}/allocations

Authorization

ApplicationToken
AuthorizationBearer <token>

Application API key (generated at /admin/api)

In: header

Path Parameters

node*integer

Node ID

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X POST "https://example.com/api/application/nodes/1/allocations" \  -H "Content-Type: application/json" \  -d '{    "ip": "10.0.0.1",    "ports": [      "25565"    ]  }'
Empty