Trillet AI logo

Switch to a Schedule

Replace the weekly hours with a saved schedule in one call.

POSThttps://api.trillet.ai/v1/api/call-flows/{id}/office-hours/schedules/{scheduleId}/activate

Copies the saved week into the flow's live weekly hours. This is the call to drive from your own scheduler or automation when a department changes its pattern.

Date exceptions are stored separately and are not cleared by switching schedules.

Headers

x-workspace-idstringrequired

Workspace identifier for the API.

Path Parameters

idstringrequired

The unique ID of the call flow.

scheduleIdstringrequired

The schedule's id or its name, so you can activate by name without storing ids.

By name
curl -X POST 'https://api.trillet.ai/v1/api/call-flows/{flowId}/office-hours/schedules/Storm/activate' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'x-workspace-id: YOUR_WORKSPACE_ID'

Last updated on