API referenceSections

CronInput

CronInput object
  • name string required
  • schedule string required

    Five-field cron: minute hour day month weekday, or @daily etc.

  • kind string required
    Allowed values: "command" "url"
  • program string optional
    Allowed values: "php" "node" "python" "file"
  • version string optional

    Node or Python version for those programs

  • path string optional

    Script or file, relative to the website's folder

  • args array<string> optional
  • url string optional
  • timeout_seconds integer optional
  • enabled boolean optional

Used by

POST/api/v1/tenants/{tid}/sites/{id}/cronAdd a scheduled task; it runs as the website's own identity
PUT/api/v1/tenants/{tid}/sites/{id}/cron/{task}Change a scheduled task