{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-crosswork/json-schema/cisco-crosswork-server-update-schedule-schema.json",
  "title": "server.updateSchedule",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-crosswork-scheduler-api-openapi.yml#/components/schemas/server.updateSchedule",
  "type": "object",
  "properties": {
    "catchupWindow": {
      "$ref": "#/$defs/time.Duration"
    },
    "data": {
      "type": "object"
    },
    "jobName": {
      "type": "string"
    },
    "logLevel": {
      "type": "string"
    },
    "note": {
      "type": "string"
    },
    "overlap": {
      "$ref": "#/$defs/enums.ScheduleOverlapPolicy"
    },
    "pauseOnFailure": {
      "type": "boolean"
    },
    "paused": {
      "type": "boolean"
    },
    "remainingActions": {
      "type": "integer"
    },
    "scheduleBackfill": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/client.ScheduleBackfill"
      }
    },
    "spec": {
      "$ref": "#/$defs/server.ScheduleSpec"
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "triggerImmediately": {
      "type": "boolean"
    },
    "workflowName": {
      "type": "string"
    },
    "workflowVersion": {
      "type": "string"
    }
  },
  "$defs": {
    "client.ScheduleBackfill": {
      "type": "object",
      "properties": {
        "end": {
          "description": "End - end of the range to evaluate schedule in.",
          "type": "string"
        },
        "overlap": {
          "$ref": "#/$defs/enums.ScheduleOverlapPolicy"
        },
        "start": {
          "description": "Start - start of the range to evaluate schedule in.",
          "type": "string"
        }
      }
    },
    "client.ScheduleCalendarSpec": {
      "type": "object",
      "properties": {
        "comment": {
          "description": "Comment - Description of the intention of this schedule.",
          "type": "string"
        },
        "dayOfMonth": {
          "description": "DayOfMonth range to match (1-31)\n\ndefault: matches all days",
          "type": "array",
          "items": {
            "$ref": "#/$defs/internal.ScheduleRange"
          }
        },
        "dayOfWeek": {
          "description": "DayOfWeek range to match (0-6; 0 is Sunday)\n\ndefault: matches all days of the week",
          "type": "array",
          "items": {
            "$ref": "#/$defs/internal.ScheduleRange"
          }
        },
        "hour": {
          "description": "Hour range to match (0-23).\n\ndefault: matches 0",
          "type": "array",
          "items": {
            "$ref": "#/$defs/internal.ScheduleRange"
          }
        },
        "minute": {
          "description": "Minute range to match (0-59).\n\ndefault: matches 0",
          "type": "array",
          "items": {
            "$ref": "#/$defs/internal.ScheduleRange"
          }
        },
        "month": {
          "description": "Month range to match (1-12)\n\ndefault: matches all months",
          "type": "array",
          "items": {
            "$ref": "#/$defs/internal.ScheduleRange"
          }
        },
        "second": {
          "description": "Second range to match (0-59).\n\ndefault: matches 0",
          "type": "array",
          "items": {
            "$ref": "#/$defs/internal.ScheduleRange"
          }
        },
        "year": {
          "description": "Year range to match.\n\ndefault: empty that matches all years",
          "type": "array",
          "items": {
            "$ref": "#/$defs/internal.ScheduleRange"
          }
        }
      }
    },
    "client.ScheduleIntervalSpec": {
      "type": "object",
      "properties": {
        "every": {
          "$ref": "#/$defs/time.Duration"
        },
        "offset": {
          "$ref": "#/$defs/time.Duration"
        }
      }
    },
    "enums.ScheduleOverlapPolicy": {
      "type": "integer",
      "enum": [
        0,
        1,
        2,
        3,
        4,
        5,
        6
      ],
      "x-enum-varnames": [
        "SCHEDULE_OVERLAP_POLICY_UNSPECIFIED",
        "SCHEDULE_OVERLAP_POLICY_SKIP",
        "SCHEDULE_OVERLAP_POLICY_BUFFER_ONE",
        "SCHEDULE_OVERLAP_POLICY_BUFFER_ALL",
        "SCHEDULE_OVERLAP_POLICY_CANCEL_OTHER",
        "SCHEDULE_OVERLAP_POLICY_TERMINATE_OTHER",
        "SCHEDULE_OVERLAP_POLICY_ALLOW_ALL"
      ],
      "description": "Overlap - Override the Overlap Policy for this request."
    },
    "internal.ScheduleRange": {
      "type": "object",
      "properties": {
        "end": {
          "description": "End of the range (inclusive)\n\nOptional: defaulted to Start",
          "type": "integer"
        },
        "start": {
          "description": "Start of the range (inclusive)",
          "type": "integer"
        },
        "step": {
          "description": "Step to be take between each value\n\nOptional: defaulted to 1",
          "type": "integer"
        }
      }
    },
    "server.ScheduleSpec": {
      "type": "object",
      "properties": {
        "calendars": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/client.ScheduleCalendarSpec"
          }
        },
        "cronExpressions": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "endAt": {
          "type": "string"
        },
        "intervals": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/client.ScheduleIntervalSpec"
          }
        },
        "jitter": {
          "$ref": "#/$defs/time.Duration"
        },
        "skip": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/client.ScheduleCalendarSpec"
          }
        },
        "startAt": {
          "type": "string"
        },
        "timeZoneName": {
          "type": "string"
        }
      }
    },
    "time.Duration": {
      "type": "integer",
      "enum": [
        -9223372036854776000,
        9223372036854776000,
        1,
        1000,
        1000000,
        1000000000,
        60000000000,
        3600000000000
      ],
      "x-enum-varnames": [
        "minDuration",
        "maxDuration",
        "Nanosecond",
        "Microsecond",
        "Millisecond",
        "Second",
        "Minute",
        "Hour"
      ],
      "description": "Offset - is a fixed offset added to the intervals period.\n\nOptional: Defaulted to 0"
    }
  }
}