PATCH
/api/public/v1/locations/{locationId}Update a location
Update a location’s core fields (display name, subdomain, address, etc.).
Required scope
The access token must carry this scope. A token missing it gets 403 Forbidden. Grant them to an API client under Dev Tools → API, to an assistant or CLI sign-in when you approve or edit it under Dev Tools, and to a teammate under Employee → Permissions.
locations:write
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
locationId | string | Required | Location ID. |
Request Body
| Property | Type | Description |
|---|---|---|
reference | string | Display name. |
subdomain | string | Free subdomain. |
code | string | Internal reference code. |
addressLine1 | string | Address line 1. |
addressLine2 | string | Address line 2. |
addressCity | string | City. |
addressState | string | State / region. |
addressCountry | string | Country. |
addressPostalCode | string | Postal code. |
addressIsPublic | boolean | Show address publicly. |
phoneNumberIsPublic | boolean | Show the phone number publicly. |
PATCHExample request
curl
curl -X PATCH "https://www.pxb.app/api/public/v1/locations/{locationId}" \
-H "Authorization: Bearer your_access_token" \
-H "Content-Type: application/json" \
-d '{
"reference": "Acme Corp",
"addressCity": "Austin"
}'200Example response
json
{
"message": "Location updated successfully!",
"content": {
"location": {
"id": "loc_abc123"
}
}
}In the console
The same thing done by hand, for anyone comparing the API against the screen they already use.
Company menu → Locations → Location details
/dashboard- Open the company menu → Locations.
- Open the ⋯ menu beside a location → Location details.