{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/circleci/main/json-schema/circleci-schedule-list-schema.json",
  "title": "ScheduleList",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/circleci-schedule-api-openapi.yml#/components/schemas/ScheduleList",
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Schedule"
      },
      "description": "List of schedules"
    },
    "next_page_token": {
      "type": "string",
      "description": "Token for retrieving the next page"
    }
  },
  "$defs": {
    "Schedule": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "description": "The unique identifier of the schedule"
        },
        "name": {
          "type": "string",
          "description": "The name of the schedule"
        },
        "description": {
          "type": "string",
          "description": "The description of the schedule"
        },
        "timetable": {
          "$ref": "#/$defs/Timetable"
        },
        "parameters": {
          "type": "object",
          "additionalProperties": true,
          "description": "Pipeline parameters for the schedule"
        },
        "project_slug": {
          "type": "string",
          "description": "The project slug"
        },
        "actor": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "format": "uuid",
              "description": "The actor ID"
            },
            "login": {
              "type": "string",
              "description": "The actor login"
            },
            "name": {
              "type": "string",
              "description": "The actor name"
            }
          },
          "description": "The user who created the schedule"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "description": "When the schedule was created"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time",
          "description": "When the schedule was last updated"
        }
      }
    },
    "Timetable": {
      "type": "object",
      "required": [
        "per-hour",
        "hours-of-day",
        "days-of-week"
      ],
      "properties": {
        "per-hour": {
          "type": "integer",
          "minimum": 1,
          "maximum": 60,
          "description": "Number of times per hour to trigger"
        },
        "hours-of-day": {
          "type": "array",
          "items": {
            "type": "integer",
            "minimum": 0,
            "maximum": 23
          },
          "description": "Hours of the day to trigger (UTC)"
        },
        "days-of-week": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "MON",
              "TUE",
              "WED",
              "THU",
              "FRI",
              "SAT",
              "SUN"
            ]
          },
          "description": "Days of the week to trigger"
        },
        "days-of-month": {
          "type": "array",
          "items": {
            "type": "integer",
            "minimum": 1,
            "maximum": 31
          },
          "description": "Days of the month to trigger"
        },
        "months": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "JAN",
              "FEB",
              "MAR",
              "APR",
              "MAY",
              "JUN",
              "JUL",
              "AUG",
              "SEP",
              "OCT",
              "NOV",
              "DEC"
            ]
          },
          "description": "Months to trigger"
        }
      }
    }
  }
}