cron.add
Schedule a job: Plinth POSTs to path on the environment at each tick (5-field cron, UTC), with the header x-plinth-cron-secret. Paths under /api/cron/ refuse any other caller. Outside production jobs start paused unless enabled is true. Jobs can also be declared in plinth.json "crons".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | Yes | Environment: production, staging, or a preview name | |
| name | Yes | ||
| path | Yes | e.g. /api/cron/digest | |
| enabled | No | ||
| project | Yes | Project name | |
| schedule | Yes | e.g. "0 9 * * 1" or "*/5 * * * *" |