PUT
/api/public/v1/location-hoursUpdate location hours
Bulk upsert location hours by day of week.
Request Body
| Property | Type | Description |
|---|---|---|
locationId | string | Location to update. |
hours | array | Array 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": {}
}