Trillet AI logo

Close a Date or Set Special Hours

Close one calendar date, or give it hours that differ from the normal week.

PUThttps://api.trillet.ai/v1/api/call-flows/{id}/office-hours/dates/{date}

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-idstringrequired

Workspace identifier for the API.

Path Parameters

idstringrequired

The unique ID of the call flow.

datestringrequired

The calendar date as YYYY-MM-DD.

Request Body

closedboolean

Send true to close the date entirely. When present and true, start and end are ignored.

startstring

Opening time for special hours, 24-hour HH:MM.

endstring

Closing 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.

Close the date
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}'
Special hours
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