POST
/api/public/v1/locations

Create a location

Create a new location in your company.

Request Body

PropertyTypeDescription
referencestringDisplay name.
industrystringLocation type.
subdomainstringFree subdomain.
taglinestringTagline.
legalEntityIdstringLink to legal entity.
POSTExample request
curl
curl -X POST "https://www.pxb.app/api/public/v1/locations" \
  -H "Authorization: Bearer your_access_token" \
  -H "Content-Type: application/json" \
  -d '{
    "reference": "Acme Corp",
    "type": "SERVICES",
    "subdomain": "acme"
  }'
200Example response
json
{
  "message": "Location created successfully!",
  "content": {
    "location": {
      "id": "loc_abc123"
    }
  }
}