Export the scheduled jobs
export_site_crons
Exports every scheduled job on a site as plain data.
Scopeconfig:readRead only
Each job comes with its name, whether it is enabled, its schedule, also written out in plain words, and its step's URL, method, headers and body. This is the tool for copying a set of jobs between sites.
Literal header values are left out of the export altogether, while headers pointing at an environment variable come back as the variable name, so a replay on another site needs every literal value typed in again. A deploy hook token inside a URL comes back as mdh_<redacted>, because that URL can publish the site, and reading it needs get_deploy_hook_url. See Scheduled jobs.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
projectId |
string | Yes | The site id. |