POST
/api/public/v1/locationsCreate a location
Create a new location in your company.
Request Body
| Property | Type | Description |
|---|---|---|
reference | string | Display name. |
industry | string | Location type. |
subdomain | string | Free subdomain. |
tagline | string | Tagline. |
legalEntityId | string | Link 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"
}
}
}