---
title: "List all schedules"
method: GET
path: "/api/unstable/fleet/schedules"
tags: ["Fleet Automation"]
---

# List all schedules

`GET /api/unstable/fleet/schedules`

Retrieve a list of all schedules for automated fleet deployments.

Schedules allow you to automate package upgrades by defining maintenance windows
and recurrence rules. Each schedule automatically creates deployments based on its
configuration.

## Response `200`

OK

- FleetSchedulesResponse — Response containing a list of schedules.
  - `data` FleetSchedule[], required — Array of schedules.
    - `attributes` FleetScheduleAttributes, required — Attributes of a schedule in the response.
      - `created_at_unix` integer — Unix timestamp (seconds since epoch) when the schedule was created.
      - `created_by` string — User handle of the person who created the schedule.
      - `name` string — Human-readable name for the schedule.
      - `query` string — Query used to filter and select target hosts for scheduled deployments. Uses the Datadog query syntax.
      - `rule` FleetScheduleRecurrenceRule — Defines the recurrence pattern for the schedule. Specifies when deployments should be automatically triggered based on maintenance windows.
        - `days_of_week` string[], required — List of days of the week when the schedule should trigger. Valid values are: "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun".
        - `maintenance_window_duration` integer, required — Duration of the maintenance window in minutes.
        - `start_maintenance_window` string, required — Start time of the maintenance window in 24-hour clock format (HH:MM). Deployments will be triggered at this time on the specified days.
        - `timezone` string, required — Timezone for the schedule in IANA Time Zone Database format (e.g., "America/New_York", "UTC").
      - `status` 'active' | 'inactive' — The status of the schedule. - `active`: The schedule is active and will create deployments according to its recurrence rule. - `inactive`: The schedule is inactive and will not create any deployments.
      - `updated_at_unix` integer — Unix timestamp (seconds since epoch) when the schedule was last updated.
      - `updated_by` string — User handle of the person who last updated the schedule.
      - `version_to_latest` integer — Number of major versions behind the latest to target for upgrades. - 0: Always upgrade to the latest version - 1: Upgrade to latest minus 1 major version - 2: Upgrade to latest minus 2 major versions Maximum value is 2.
    - `id` string, required — Unique identifier for the schedule.
    - `type` 'schedule', required — The type of schedule resource.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `429` — Too many requests

---

[API](https://skmtc.net/datadog/apis/api-v2.md) · [All operations](https://skmtc.net/datadog/apis/api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/datadog/api-v2/revisions/da68bf029e4c/schema)
