Edit a Schedule
Rename a saved schedule or change the week it holds.
PUT
Headers
x-workspace-idstringrequiredWorkspace identifier for the API.
Path Parameters
idstringrequiredThe unique ID of the call flow.
scheduleIdstringrequiredThe schedule's id or its name.
Request Body
namestringA new name, up to 60 characters.
perDayobjectA new week for this schedule.
Editing the schedule that is currently active also changes the hours in use, so the flow never keeps the old week under the new name.
curl -X PUT 'https://api.trillet.ai/v1/api/call-flows/{flowId}/office-hours/schedules/Storm' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'x-workspace-id: YOUR_WORKSPACE_ID' \
-H 'Content-Type: application/json' \
-d '{"name": "Severe weather"}'Last updated on