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

NameTypeRequiredDescription
locationIdstringRequiredLocation ID.

Request Body

PropertyTypeDescription
referencestringDisplay name.
subdomainstringFree subdomain.
codestringInternal reference code.
addressLine1stringAddress line 1.
addressLine2stringAddress line 2.
addressCitystringCity.
addressStatestringState / region.
addressCountrystringCountry.
addressPostalCodestringPostal code.
addressIsPublicbooleanShow address publicly.
phoneNumberIsPublicbooleanShow 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
  1. Open the company menu → Locations.
  2. Open the ⋯ menu beside a location → Location details.