Update a schedule
PATCH /v1/schedules/{scheduleId} · SDK updateSchedule · CLI deployments schedule update
Requires schedules:write.
AuthorizationBearer <token>Opaque bearer credential scoped to one service account and tenant.
scheduleId*string^[0-7][0-9A-HJKMNP-TV-Z]{25}$x-deployments-environment?stringRequired with a platform bearer JWT, where the three tenant headers select an environment the caller can access through active organization membership. Optional with an API key; when supplied, it must match the key's tenant.
^[0-7][0-9A-HJKMNP-TV-Z]{25}$x-deployments-organization?stringRequired with a platform bearer JWT, where the three tenant headers select an environment the caller can access through active organization membership. Optional with an API key; when supplied, it must match the key's tenant.
^[0-7][0-9A-HJKMNP-TV-Z]{25}$x-deployments-project?stringRequired with a platform bearer JWT, where the three tenant headers select an environment the caller can access through active organization membership. Optional with an API key; when supplied, it must match the key's tenant.
^[0-7][0-9A-HJKMNP-TV-Z]{25}$application/json- body
expression?string^\S[\s\S]*\S$|^\S$|^$1 <= length <= 256name?string^\S[\s\S]*\S$|^\S$|^$1 <= length <= 120prompt?string^\S[\s\S]*\S$|^\S$|^$1 <= length <= 40000timezone?|nullScheduleResponse
application/json- response
createdAt*string^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$date-timeupdatedAt*string^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$date-timeversion*number|||environmentId*string^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$organizationId*string^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$projectId*string^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$workspaceId?string^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$agentDeploymentId*string^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$createdBy?createdFrom?id*string^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$name*stringnextRunAt?string^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$date-timeobject*"schedule""schedule"prompt?stringschedule*status*string"active""archived""paused""provisioning"threadId?string^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$curl -X PATCH "https://example.com/v1/schedules/string" \ -H "Content-Type: application/json" \ -d '{}'{ "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "version": 0, "environmentId": "string", "organizationId": "string", "projectId": "string", "workspaceId": "string", "agentDeploymentId": "string", "createdBy": { "id": "string", "type": "agent" }, "createdFrom": { "runId": "string", "threadId": "string", "toolCallId": "string", "toolName": "string" }, "id": "string", "name": "string", "nextRunAt": "2019-08-24T14:15:22Z", "object": "schedule", "prompt": "string", "schedule": { "expression": "string", "timezone": "string" }, "status": "active", "threadId": "string"}