Schedule a job
add_scheduleSchedule recurring HTTP calls to an application path using cron syntax, enabling automated tasks like nightly cleanups. Ensure endpoints verify a secret header.
Instructions
Call a path on the application on a schedule, such as a nightly cleanup. Anyone can send the x-antideploy-cron header the call carries, so an endpoint that does real work should also check a secret of the app's own.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | A path on this application, starting with a slash. | |
| method | No | Default POST. | |
| schedule | Yes | Five-field cron in UTC, like "0 3 * * *", or @hourly, @daily, @weekly, @monthly. |