set_flow_schedule
Run the whole flow on a clock, for a flow without a trigger ("every morning at 9", "every weekday"); not a polling trigger's frequency. Requires a saved flow version that is not LIVE or PAUSED; the schedule takes effect at start_flow; each version has its own. schedule: "once" | "custom" (everySeconds required) | "daily" (everyDays, default 1) | "weekly" (weekDays required: 1-7, 1 = Sunday … 7 = Saturday; everyWeeks default 1); no monthly. The schedule values are the same as a polling trigger's frequency. enabled defaults to true. Partial update: omitted startDate/endDate/enabled/onlyScheduledInitiations/allowApiInitiationsWhenScheduleExpired keep their current values; with no existing schedule, startDate defaults to about 30 s from now and endDate to none. endDate: null clears the expiry. enabled: false saves the schedule turned off (as stop-scheduled-runs does). onlyScheduledInitiations: true — only the scheduler may start runs. allowApiInitiationsWhenScheduleExpired: true — after endDate other starts are allowed again; only together with onlyScheduledInitiations.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| enabled | No | ||
| endDate | No | ||
| schedule | Yes | ||
| weekDays | No | ||
| everyDays | No | ||
| startDate | No | ||
| versionId | Yes | ||
| everyWeeks | No | ||
| workspaceId | Yes | ||
| everySeconds | No | ||
| onlyScheduledInitiations | No | ||
| allowApiInitiationsWhenScheduleExpired | No |