Pterodactyldocs
Application 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

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X PATCH "https://example.com/api/application/locations/1" \  -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"  }}