Create a schedule
Creates a schedule of an agent: each occurrence of cron_expression, read in time_zone, starts a run of the agent with trigger scheduled and the schedule’s id, built from run_template as POST /runs builds a saved agent’s run. A cron expression or time zone that doesn’t parse, an expression that never fires, a revision of another agent, an agent with no revision, or a schedule with no occurrence before its end_at is 400.
Authorizations
Customer API key (axl_ prefix).
Path Parameters
The agent's id.
Body
Request body for creating a schedule of an agent.
Five-field cron: minute, hour, day of month, month, day of week. For example 0 9 * * 1-5 is 09:00 on weekdays.
1 - 200The IANA time zone cron_expression is read in, for example America/Los_Angeles or UTC.
1 - 64No occurrence at or after this time. Leave out to run until deleted.
A label for the schedule.
100skip (default) drops an occurrence while the previous run is unfinished; queue starts it anyway.
skip, queue What each run starts with.
No occurrence before this time. Leave out to start now.
Response
Created
A schedule: an agent's recurring runs. Each occurrence of cron_expression, read in time_zone, starts a run with trigger scheduled and this schedule_id.
The agent the schedule runs.
When the schedule was created.
Five-field cron: minute, hour, day of month, month, day of week.
The schedule's id.
The schedule's label.
skip drops an occurrence while the schedule's previous run is scheduled, queued, running or paused. queue starts it anyway, waiting for a phone like any run.
skip, queue What each run starts with.
active runs its occurrences. paused runs none until resumed. ended is final: the schedule passed its end_at.
active, paused, ended The IANA time zone cron_expression is read in, so local times hold across daylight saving.
When the schedule was last changed.
No occurrence at or after this time. Once it passes, the schedule ends and its runs that have not started are cancelled.
The run the schedule last started.
When the next occurrence starts a run, or end_at when no occurrence is left before it. Absent unless the schedule is active.
No occurrence before this time.