Close a Date or Set Special Hours
Close one calendar date, or give it hours that differ from the normal week.
This is the endpoint for same-day changes: weather, staffing, a public holiday, a late opening.
A date is either closed or has special hours, never both. Sending one replaces the other.
Headers
x-workspace-idstringrequiredWorkspace identifier for the API.
Path Parameters
idstringrequiredThe unique ID of the call flow.
datestringrequiredThe calendar date as YYYY-MM-DD.
Request Body
closedbooleanSend true to close the date entirely. When present and true, start and end are ignored.
startstringOpening time for special hours, 24-hour HH:MM.
endstringClosing time for special hours, 24-hour HH:MM. Must be later than start.
Send either {"closed": true} or both start and end. Anything else is rejected with 400.
A flow holds at most 366 date exceptions. Remove past dates rather than letting them accumulate.
curl -X PUT 'https://api.trillet.ai/v1/api/call-flows/{flowId}/office-hours/dates/2026-12-25' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'x-workspace-id: YOUR_WORKSPACE_ID' \
-H 'Content-Type: application/json' \
-d '{"closed": true}'curl -X PUT 'https://api.trillet.ai/v1/api/call-flows/{flowId}/office-hours/dates/2026-12-24' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'x-workspace-id: YOUR_WORKSPACE_ID' \
-H 'Content-Type: application/json' \
-d '{"start": "08:00", "end": "13:00"}'Last updated on