PUT
/api/public/v1/business-hours

Update business hours

Bulk upsert business hours by day of week.

Request Body

PropertyTypeDescription
businessIdstringBusiness to update.
hoursarrayArray of `{ dayOfWeek, openTime, closeTime, isClosed, is24Hours }`. dayOfWeek is 0-6 (Sun-Sat).
PUTExample request
curl
curl -X PUT "https://www.pxb.app/api/public/v1/business-hours" \
  -H "X-Organization-Id: your_org_id" \
  -H "X-API-Key: your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "businessId": "biz_abc",
    "hours": [
      {
        "dayOfWeek": 1,
        "openTime": "09:00",
        "closeTime": "17:00",
        "isClosed": false,
        "is24Hours": false
      }
    ]
  }'
200Example response
json
{
  "message": "Business hours updated successfully!",
  "content": {}
}