Enable or disable a scheduled job
toggle_site_cron
Turns one scheduled job on a site on or off.
Scopeconfig:writeMakes changes
Disabling stops it firing but keeps its definition and history. Enabling recomputes the next run from that moment and clears both the consecutive failure count and any reason the platform switched it off automatically. See Scheduled jobs.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
projectId |
string | Yes | The site id. |
cronId |
string | Yes | The job id from list_site_crons. |
enabled |
boolean | Yes | True to enable the job, false to disable it. |