API referenceSections

CronTask

CronTask 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
  • id string required
  • site_id string required
  • created_at string (date-time) required
  • updated_at string (date-time) required

Used by

GET/api/v1/tenants/{tid}/sites/{id}/cronA website's scheduled tasks (ADR 0048)
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