Trillet AI logo

Edit a Schedule

Rename a saved schedule or change the week it holds.

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

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.

Request Body

namestring

A new name, up to 60 characters.

perDayobject

A 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