Switch to a Schedule
Replace the weekly hours with a saved schedule in one call.
POST
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-idstringrequiredWorkspace identifier for the API.
Path Parameters
idstringrequiredThe unique ID of the call flow.
scheduleIdstringrequiredThe 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