Skip to main content
GET
/
api
/
schedules
List Schedules
curl --request GET \
  --url https://api.example.com/api/schedules
{
  "schedules": [
    {
      "id": 1,
      "type": "container_update",
      "name": "Update container: nginx",
      "entityName": "nginx",
      "environmentId": 1,
      "environmentName": "Production",
      "enabled": true,
      "scheduleType": "daily",
      "cronExpression": "0 3 * * *",
      "nextRun": "2026-03-05T03:00:00.000Z",
      "lastExecution": {
        "id": 123,
        "startedAt": "2026-03-04T03:00:00.000Z",
        "completedAt": "2026-03-04T03:01:45.000Z",
        "status": "success"
      },
      "recentExecutions": [],
      "isSystem": false,
      "envHasScanning": true,
      "vulnerabilityCriteria": "critical_high"
    },
    {
      "id": 2,
      "type": "git_stack_sync",
      "name": "Git sync: my-stack",
      "entityName": "my-stack",
      "environmentId": 1,
      "environmentName": "Production",
      "enabled": true,
      "scheduleType": "weekly",
      "cronExpression": "0 2 * * 1",
      "nextRun": "2026-03-10T02:00:00.000Z",
      "lastExecution": null,
      "recentExecutions": [],
      "isSystem": false
    },
    {
      "id": 3,
      "type": "env_update_check",
      "name": "Update environment: Production",
      "entityName": "Production",
      "description": "Check, scan & auto-update containers",
      "environmentId": 1,
      "environmentName": "Production",
      "enabled": true,
      "scheduleType": "custom",
      "cronExpression": "0 4 * * *",
      "nextRun": "2026-03-05T04:00:00.000Z",
      "lastExecution": null,
      "recentExecutions": [],
      "isSystem": false,
      "envHasScanning": true,
      "vulnerabilityCriteria": "critical"
    }
  ]
}
Returns all active schedules including container auto-updates, git stack syncs, environment update checks, image prune jobs, and system cleanup tasks.

Response

Returns an object containing an array of schedule information.

Response Fields

schedules
array
Array of schedule objects

Cron Expression Format

Cron expressions use standard 5-field format:
minute hour day month weekday
*      *    *   *     *
  • minute: 0-59
  • hour: 0-23 (24-hour format)
  • day: 1-31 (day of month)
  • month: 1-12
  • weekday: 0-7 (0 and 7 are Sunday)

Common Examples

0 3 * * *

Response Example

{
  "schedules": [
    {
      "id": 1,
      "type": "container_update",
      "name": "Update container: nginx",
      "entityName": "nginx",
      "environmentId": 1,
      "environmentName": "Production",
      "enabled": true,
      "scheduleType": "daily",
      "cronExpression": "0 3 * * *",
      "nextRun": "2026-03-05T03:00:00.000Z",
      "lastExecution": {
        "id": 123,
        "startedAt": "2026-03-04T03:00:00.000Z",
        "completedAt": "2026-03-04T03:01:45.000Z",
        "status": "success"
      },
      "recentExecutions": [],
      "isSystem": false,
      "envHasScanning": true,
      "vulnerabilityCriteria": "critical_high"
    },
    {
      "id": 2,
      "type": "git_stack_sync",
      "name": "Git sync: my-stack",
      "entityName": "my-stack",
      "environmentId": 1,
      "environmentName": "Production",
      "enabled": true,
      "scheduleType": "weekly",
      "cronExpression": "0 2 * * 1",
      "nextRun": "2026-03-10T02:00:00.000Z",
      "lastExecution": null,
      "recentExecutions": [],
      "isSystem": false
    },
    {
      "id": 3,
      "type": "env_update_check",
      "name": "Update environment: Production",
      "entityName": "Production",
      "description": "Check, scan & auto-update containers",
      "environmentId": 1,
      "environmentName": "Production",
      "enabled": true,
      "scheduleType": "custom",
      "cronExpression": "0 4 * * *",
      "nextRun": "2026-03-05T04:00:00.000Z",
      "lastExecution": null,
      "recentExecutions": [],
      "isSystem": false,
      "envHasScanning": true,
      "vulnerabilityCriteria": "critical"
    }
  ]
}

Build docs developers (and LLMs) love