Update working hours
Replace the weekly working hours for a business.
PUT
/api/pos/business/{businessId}/working-hoursFull replacement. Any day you leave out is treated as closed. day: 1 = Sunday … 7 = Saturday. Times are HH:mm UTC.
To read the schedule after an update, call Get working hours. GET uses the same days / day / hours / type / fromHour / toHour shape and the same UTC HH:mm convention. GET does not return a requestId.
Example:
X-Api-Key: YOUR_API_KEY
PATH SCHEMA
businessIdrequiredREQUEST BODY SCHEMA: application/json
daysrequireddayrequiredtypehoursfromHourrequiredtoHourrequiredtype values
type | Meaning on PUT |
|---|---|
0 | Open with specific hours (hours required, one or more non-overlapping UTC ranges). Default if type is omitted. |
1 | Closed — do not send. Omit the day from days instead. |
2 | Open 24 hours (hours empty / not required) |
RESPONSE BODY SCHEMA: application/json
requestIdrequiredstatusrequiredmessageResponses
200 — Success or queued
200 — Success or queued
If status is Pending, poll Get request status.
400 — Validation failed
400 — Validation failed
Overlapping hours or a bad day value.
Request example
cURL
bashcurl -X PUT http://ext-integration.haat-delivery.io/api/pos/business/1021/working-hours \
-H "X-Api-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"days":[{"day":1,"hours":[{"fromHour":"08:00","toHour":"14:00"}]}]}'Response example
200
json{"requestId":"6651a3f2e1b2c3d4e5f60001","status":"Success","message":"Updated successfully"}