Update Schedule
PATCH
/api/v1/workflows/schedules/{schedule_id}
const url = 'https://api.ultimateteam.ai/api/v1/workflows/schedules/example';const options = { method: 'PATCH', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"cron_expression":"example","enabled":true,"params":{}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.ultimateteam.ai/api/v1/workflows/schedules/example \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "cron_expression": "example", "enabled": true, "params": {} }'Partially update a schedule (toggle enabled, change cron).
Only non-None fields in the request body are applied. Returns 404 if the schedule does not exist or does not belong to the authenticated tenant.
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”schedule_id
required
Schedule Id
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
UpdateScheduleRequest
Request body for partially updating a schedule.
All fields are optional – only provided fields are applied.
Attributes: enabled: New enabled state. cron_expression: New cron expression. params: New parameters dict.
object
Examplegenerated
{ "cron_expression": "example", "enabled": true, "params": {}}Responses
Section titled “ Responses ”Successful Response
Media typeapplication/json
Response Update Schedule Api V1 Workflows Schedules Schedule Id Patch
object
key
additional properties
any
Examplegenerated
{}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{ "detail": [ { "ctx": {}, "input": "example", "loc": [ "example" ], "msg": "example", "type": "example" } ]}