Update cron trigger
Updates the schedule, message template, or enabled state. The target is immutable; delete the trigger and create a new one to retarget.
Authorizations
An opaque Omnara personal or organization bearer token.
Path Parameters
^org_[a-z2-7]{26}$^proj_[a-z2-7]{26}$^cron_[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 - 64Standard 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.
65536Response
Cron trigger updated.
^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.