Schedules
Schedules that start a template or flow at set times.
Every path is under /api/v1; see the API for authenticating, errors and rate
limits, and the schemas for the bodies.
The template's schedules by name (project:read)
GET /api/v1/templates/{template}/schedules
| Parameter | In | Description |
|---|---|---|
template |
path | ID |
project_id |
query | ID: The project whose schedules of it to list; required for an organization template. |
Answers:
200: OK, object with the fields below
| Field | Type | Description |
|---|---|---|
schedules |
array of Schedule, required |
Errors: 400, 404 (how errors look).
Schedule runs of a template (schedule:write)
POST /api/v1/templates/{template}/schedules
An organization has at most its schedules quota (default 50).
| Parameter | In | Description |
|---|---|---|
template |
path | ID |
Body (application/json): ScheduleInput.
Answers:
201: Created, Schedule
Errors: 400, 403, 404, 409, 422 (how errors look).
The project's schedules by name (project:read)
GET /api/v1/projects/{project}/schedules
| Parameter | In | Description |
|---|---|---|
project |
path | ID |
Answers:
200: OK, object with the fields below
| Field | Type | Description |
|---|---|---|
schedules |
array of Schedule, required |
Errors: 403, 404 (how errors look).
A schedule (project:read)
GET /api/v1/schedules/{schedule}
| Parameter | In | Description |
|---|---|---|
schedule |
path | ID |
Answers:
200: OK, Schedule
Errors: 404 (how errors look).
Replace a schedule's settings (schedule:write)
PUT /api/v1/schedules/{schedule}
| Parameter | In | Description |
|---|---|---|
schedule |
path | ID |
Body (application/json): ScheduleInput.
Answers:
200: OK, Schedule
Errors: 400, 403, 404, 409, 422 (how errors look).
Delete a schedule and its fire history; its runs stay (schedule:write)
DELETE /api/v1/schedules/{schedule}
| Parameter | In | Description |
|---|---|---|
schedule |
path | ID |
Answers:
204: Deleted
Errors: 403, 404 (how errors look).
A schedule's latest fires, newest first (project:read)
GET /api/v1/schedules/{schedule}/fires
| Parameter | In | Description |
|---|---|---|
schedule |
path | ID |
limit |
query | integer |
Answers:
200: OK, object with the fields below
| Field | Type | Description |
|---|---|---|
fires |
array of ScheduleFire, required |
Errors: 400, 404 (how errors look).
The stored flow's schedules by name (project:read)
GET /api/v1/flows/{flow}/schedules
| Parameter | In | Description |
|---|---|---|
flow |
path | ID |
Answers:
200: OK, object with the fields below
| Field | Type | Description |
|---|---|---|
schedules |
array of Schedule, required |
Errors: 404 (how errors look).
Schedule flow runs of a stored flow (schedule:write)
POST /api/v1/flows/{flow}/schedules
Each fire starts the flow's latest version as a flow run named after the flow, as the
schedule's service account; params are the flow's parameter values and
env is the schedule's variables layer of each step. Concurrency counts the schedule's
running flow runs. An organization has at most its schedules quota (default 50).
| Parameter | In | Description |
|---|---|---|
flow |
path | ID |
Body (application/json): ScheduleInput.
Answers:
201: Created, Schedule
Errors: 400, 403, 404, 409, 422 (how errors look).