Locations
Create location
Creates a new location
POST
/api/application/locationsAuthorization
ApplicationToken AuthorizationBearer <token>
Application API key (generated at /admin/api)
In: header
Request Body
application/json
short*string
Location identifier
long?string
Location description
Response Body
application/json
curl -X POST "https://pterodactyl.file.properties/api/application/locations" \ -H "Authorization: Bearer ptla_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \ -H "Accept: application/json" \ -H "Content-Type: application/json" \ -d '{ "short": "GB", "long": "London Datacenter"}'{
"object": "location",
"attributes": {
"id": 3,
"short": "G",
"long": "London Datacenter",
"updated_at": "2020-06-13T20:44:48+00:00",
"created_at": "2020-06-13T20:44:48+00:00"
},
"meta": {
"resource": "https://pterodactyl.file.properties/api/application/locations/3"
}
}