API V1
  • Global information
  • Authentication
  • Data format
  • Rate Limit
  • Errors
  • Pagination
RESOURCES
  • Addon providers
  • Addons
  • Alerts
  • Applications
  • Audit Logs
  • Autoscalers
  • Billing
  • Collaborators
  • Container Sizes
  • Cron Tasks
    • Get Cron Tasks
  • Data Access Consents
  • Databases
  • Deployment
  • Domains
  • Environment variables
  • Event Categories
  • Event Types
  • Events
  • Invoices
  • SSH Keys
  • Log Drains
  • Application Logs
  • Metrics
  • Notification Platforms
  • Notifiers
  • One-off Containers
  • Operations
  • Projects
  • Referral
  • Regions
  • SCM Integrations
  • Integration Link
  • Sources
  • Stacks
  • Tokens
  • User Account
LINKS
  • Addon Provider API
  • Database API
  • One-click Deployment API
  • scalingo.json Schema
  • Main site
  • Dashboard

Cron Tasks

Cron tasks attributes

field type description
command string the cron expression followed by the command
size string (optional) the size of the one-off container

Example object:

{
  "jobs": [
    {
      "command": "0 5 * * * rake import:orders:status",
      "size": "2XL"
    },
    {
      "command": "0 13 * * * rake export:orders"
    }
  ]
}

Get Cron Tasks

GET https://$SCALINGO_API_URL/v1/apps/[:app]/cron_tasks

Example request

curl -H 'Accept: application/json' -H 'Content-Type: application/json' \
  -H "Authorization: Bearer $BEARER_TOKEN" \
  -X GET https://$SCALINGO_API_URL/v1/apps/example-app/cron_tasks

Returns 200 OK

{
  "jobs": [
    {
      "command": "0 5 * * * rake import:orders:status",
      "size": "2XL"
    },
    {
      "command": "0 13 * * * rake export:orders"
    }
  ]
}