Auditmark

Update location

PATCH
/locations/{location_id}

Authorization

OrgApiKey
AuthorizationBearer <token>

Organization API key. Send as Authorization: Bearer <key>. Create one in Admin > Settings > API keys.

In: header

Path Parameters

location_id*Location Id

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Presence-aware. An omitted field is left alone; an explicit null clears a nullable column.

The nullable columns are kind, address, latitude, longitude and parent_id. The rest are NOT NULL, so an explicit null there is a client mistake and is refused with a 422 rather than reaching the database as a constraint violation.

Response Body

application/json

application/json

curl -X PATCH "https://api.auditmark.io/v1/locations/497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Content-Type: application/json" \  -d '{}'
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "client_account_id": "219adf14-412b-4051-82f8-967a3418e740",  "name": "string",  "source": "string"}
{  "detail": [    {      "loc": [        "string"      ],      "msg": "string",      "type": "string",      "input": null,      "ctx": {}    }  ]}