Skip to main content
Update attributes of an existing schedule. Only fields supplied in the request are changed; omitted fields keep their current values. A schedule in the completed state cannot be updated.

POST /revisions/:id/data (Command: update_schedule)

Request Body

ParameterTypeRequiredDescription
enginestringYesMust be scheduler_blobhub.
commandstringYesMust be update_schedule.
schedule_idstringYesId of the schedule to update.
enabledbooleanNoNew enabled flag.
repeatstringNoEither one_time or recurring_cron.
cron_expressionstringNoSix-field AWS cron expression. Must be set when repeat is recurring_cron.
invocation_timestringNoISO 8601 datetime. Must be set when repeat is one_time.
timezonestringNoIANA timezone name.
start_datestringNoISO 8601 UTC datetime.
end_datestringNoISO 8601 UTC datetime.
invocation_target_typestringNoMust be workflow.
invocation_targetobjectNoReplacement invocation target object.
If repeat is changed to recurring_cron, cron_expression must be supplied in the same request. If changed to one_time, invocation_time must be supplied. invocation_time follows the same naive-datetime format as on create.

Response

ParameterTypeDescription
scheduleobjectThe updated schedule object.

Example

{
  "engine": "scheduler_blobhub",
  "command": "update_schedule",
  "schedule_id": "sched-001",
  "enabled": false,
  "timezone": "Europe/London"
}