Locations
Update location
Updates the specified location
PATCH
/api/application/locations/{location}Authorization
ApplicationToken AuthorizationBearer <token>
Application API key (generated at /admin/api)
In: header
Path Parameters
location*integer
Location ID
Request Body
application/json
short*string
long?string
Response Body
application/json
curl -X PATCH "https://pterodactyl.file.properties/api/application/locations/1" \ -H "Authorization: Bearer ptla_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \ -H "Accept: application/json" \ -H "Content-Type: application/json" \ -d '{ "short": "GB", "long": "London Datacenter"}'{
"object": "location",
"attributes": {
"id": 1,
"short": "GB",
"long": "London Datacenter",
"updated_at": "2020-06-13T21:16:58+00:00",
"created_at": "2019-12-22T04:44:18+00:00"
}
}