Update schedule

http
PATCH /projects/{project_reference}/schedules/{schedule_id}

Change the fields of a schedule, or pause and resume it with the status, where an omitted field keeps its value; returns the updated schedule. Requires project.runs.write.

Parameters

NameInRequiredDescription
project_referencepathYes
schedule_idpathYesSchedule ID.

Request body

FieldTypeRequiredDescription
namestringHuman-readable schedule name.
targetobjectTyped schedule target.
schedulestringSchedule expression, for example a cron expression.
timezonestringIANA timezone used to evaluate the schedule.
runtime_target_kindstringRuntime target kind for scheduled runs.
runtime_target_environment_idstring,nullEnvironment ID when runtime_target_kind is environment.
runtime_target_branch_idstring,nullBranch ID when runtime_target_kind is preview_branch.
configobjectRun configuration. For agent schedules, put the run prompt in config.prompt.
timeout_secondsintegerPer-run timeout in seconds.
backoff_limitintegerRetry backoff limit for failed scheduled runs.
concurrency_policystringHow overlapping scheduled runs are handled.
max_runsinteger,nullOptional maximum number of scheduled runs.
statusstringUpdated schedule status.

Responses

StatusDescription
200Updated schedule. Requires project run-write authorization, retaining source ownership and runtime target rules.
400invalid_input: invalid body or parameters
401unauthenticated
403forbidden: a project member without project.runs.write
404not_found: project or schedule not found or not visible
500internal
503internal: authentication state is temporarily unavailable and the request was not processed; retry shortly.