Create a schedule
create_scheduleStart a saved workflow on a timetable. Needs an administrator key. Each start is a run billed to the organization, with the cost cap given here (or the default). Use preview_schedule first to check the timetable. A schedule pauses itself after repeated failed starts. An organization can have 50 schedules.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cron | Yes | Five fields (minute hour day-of-month month day-of-week), such as "0 9 * * 1-5", or a descriptor such as @daily or @every 15m. At most once a minute. | |
| name | No | A label for the schedule. | |
| input | No | Any JSON the agent receives as its input on every start (maximum 1 MiB). | |
| enabled | No | Whether the schedule starts runs (default true). | |
| timezone | No | IANA time zone name, such as Europe/Madrid (default UTC). | |
| workflow | Yes | Name of the saved workflow to run (see list_workflows). | |
| max_cost_micros | No | Cost cap of each run, in millionths of a dollar. | |
| skip_if_running | No | Skip a start while the previous run is still going (default true). |