PUT
/api/public/v1/location-hours

Update location hours

Bulk upsert location hours by day of week.

Request Body

PropertyTypeDescription
locationIdstringLocation 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/location-hours" \
  -H "Authorization: Bearer your_access_token" \
  -H "Content-Type: application/json" \
  -d '{
    "locationId": "loc_abc",
    "hours": [
      {
        "dayOfWeek": 1,
        "openTime": "09:00",
        "closeTime": "17:00",
        "isClosed": false,
        "is24Hours": false
      }
    ]
  }'
200Example response
json
{
  "message": "Location hours updated successfully!",
  "content": {}
}