Update cron trigger
crons_updateUpdates a cron trigger's schedule, message template, or enabled state. To change its target, delete it and create a new trigger.
Instructions
Updates the schedule, message template, or enabled state. The target is immutable; delete the trigger and create a new one to retarget.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cron | No | 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. | |
| name | No | Human-readable name. Spaces and punctuation are allowed; leading or trailing whitespace and invisible or control characters are not. | |
| orgID | Yes | ||
| target | No | ||
| enabled | No | ||
| timezone | No | IANA time zone the schedule is evaluated in. | |
| projectID | Yes | ||
| cronTriggerID | Yes | ||
| message_template | No | Go text/template rendered on each firing to produce the message sent to the target. The template receives a `trigger` value with `name`, `fired_at`, `last_fired_at`, and `local_date` fields. Timestamps remain UTC; local_date is the scheduled occurrence's ISO date in the schedule timezone. Required for agent and profile targets; omitted for integration targets, which use their own settings. 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. |