PATCH
/api/public/v1/businesses/{businessId}Update a business
Update a business’s core fields (display name, address, accent color, etc.).
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
businessId | string | Required | Business ID. |
Request Body
| Property | Type | Description |
|---|---|---|
displayName | 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/businesses/{businessId}" \
-H "X-Organization-Id: your_org_id" \
-H "X-API-Key: your_api_key" \
-H "Content-Type: application/json" \
-d '{
"displayName": "Acme Corp",
"accentColor": "violet"
}'200Example response
json
{
"message": "Business updated successfully!",
"content": {
"business": {
"id": "biz_abc123"
}
}
}