PATCH
/api/public/v1/locations/{locationId}Update a location
Update a location’s core fields (display name, address, accent color, etc.).
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
locationId | string | Required | Location ID. |
Request Body
| Property | Type | Description |
|---|---|---|
reference | string | Display name. |
tagline | string | Tagline. |
subdomain | string | Free subdomain. |
addressLine1 | string | Address line 1. |
addressCity | string | City. |
addressState | string | State / region. |
addressCountry | string | Country. |
addressPostalCode | string | Postal code. |
addressIsPublic | boolean | Show address publicly. |
accentColor | string | Portal accent color. |
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",
"accentColor": "violet"
}'200Example response
json
{
"message": "Location updated successfully!",
"content": {
"location": {
"id": "loc_abc123"
}
}
}