Create cron trigger
Creates a cron trigger that fires on a schedule. A trigger targeting an agent profile launches a new agent from the profile’s current config on each firing; a trigger targeting an agent sends an input to that agent. Missed firings are coalesced, matching standard cron behavior: if one or more scheduled times pass while firing is delayed, the trigger fires once for the oldest missed time and then resumes its schedule from the current time, without retroactively firing for the other missed times.
Authorizations
An opaque Omnara personal or organization bearer token.
Headers
Idempotency key for replay-safe mutating requests.
1 - 255Path Parameters
^org_[a-z2-7]{26}$^proj_[a-z2-7]{26}$Body
Human-readable name. Spaces and punctuation are allowed; leading or trailing whitespace and invisible or control characters are not.
1 - 64- Option 1
- Option 2
Standard five-field cron expression (minute, hour, day of month, month, day of week). TZ=/CRON_TZ= prefixes are rejected; set the timezone field instead.
9 - 256Go text/template rendered on each firing to produce the message sent to the target. The template receives a trigger value with name, fired_at, and last_fired_at fields. Rendering is capped at 64 KiB of output and one second of wall-clock time, and printf width and precision specifiers are capped at 1024; a firing whose template fails to render is recorded in failure_report without sending a message.
65536IANA time zone the schedule is evaluated in.
64Response
Existing cron trigger returned.
^cron_[a-z2-7]{26}$^org_[a-z2-7]{26}$^proj_[a-z2-7]{26}$Human-readable name. Spaces and punctuation are allowed; leading or trailing whitespace and invisible or control characters are not.
1 - 64- Option 1
- Option 2
Standard five-field cron expression (minute, hour, day of month, month, day of week). TZ=/CRON_TZ= prefixes are rejected; set the timezone field instead.
9 - 256IANA time zone the schedule is evaluated in.
64Go text/template rendered on each firing to produce the message sent to the target. The template receives a trigger value with name, fired_at, and last_fired_at fields. Rendering is capped at 64 KiB of output and one second of wall-clock time, and printf width and precision specifiers are capped at 1024; a firing whose template fails to render is recorded in failure_report without sending a message.
65536When the trigger last fired, or null if it has never fired.
Next scheduled firing, or null while the trigger is disabled.
Most recent failed firing, or null if no firing has failed since the last successful firing.