{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/webex/json-schema/webex-operating-mode-holiday-post-request-object-schema.json",
  "title": "OperatingModeHolidayPostRequestObject",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/webex-features-operating-modes-api-openapi.yml#/components/schemas/OperatingModeHolidayPostRequestObject",
  "type": "object",
  "required": [
    "name",
    "allDayEnabled",
    "startDate",
    "endDate"
  ],
  "properties": {
    "name": {
      "type": "string",
      "description": "Name of the holiday."
    },
    "allDayEnabled": {
      "type": "boolean",
      "description": "Specifies if the `operating mode holiday` schedule event is enabled for the entire day. `False` if the flag is not set."
    },
    "startDate": {
      "type": "string",
      "description": "Start date of the `operating mode holiday`."
    },
    "endDate": {
      "type": "string",
      "description": "End date of the `operating mode holiday`."
    },
    "startTime": {
      "type": "string",
      "description": "Start time for the `operating mode holiday`. Mandatory if `allDayEnabled` is false."
    },
    "endTime": {
      "type": "string",
      "description": "End time for the `operating mode holiday`. Mandatory if `allDayEnabled` is false."
    },
    "recurrence": {
      "$ref": "#/$defs/OperatingModeRecurrenceObject",
      "description": "Recurrence configuration for the `operating mode holiday`."
    }
  },
  "$defs": {
    "OperatingModeRecurrenceObject": {
      "type": "object",
      "properties": {
        "recurYearlyByDate": {
          "$ref": "#/$defs/RecurYearlyByDateObject",
          "description": "Recurrence definition yearly by date."
        },
        "recurYearlyByDay": {
          "$ref": "#/$defs/RecurYearlyByDayObject",
          "description": "Recurrence definition yearly by day."
        }
      }
    },
    "RecurYearlyByDateObject": {
      "type": "object",
      "required": [
        "dayOfMonth",
        "month"
      ],
      "properties": {
        "dayOfMonth": {
          "type": "number",
          "description": "Schedule the event on a specific day of the month."
        },
        "month": {
          "type": "string",
          "enum": [
            "JANUARY",
            "FEBRUARY",
            "MARCH",
            "APRIL",
            "MAY",
            "JUNE",
            "JULY",
            "AUGUST",
            "SEPTEMBER",
            "OCTOBER",
            "NOVEMBER",
            "DECEMBER"
          ],
          "description": "Schedule the event on a specific month of the year."
        }
      }
    },
    "RecurYearlyByDayObject": {
      "type": "object",
      "required": [
        "day",
        "week",
        "month"
      ],
      "properties": {
        "day": {
          "type": "string",
          "enum": [
            "SUNDAY",
            "MONDAY",
            "TUESDAY",
            "WEDNESDAY",
            "THURSDAY",
            "FRIDAY",
            "SATURDAY"
          ],
          "description": "Schedule the event on a specific day."
        },
        "week": {
          "type": "string",
          "enum": [
            "FIRST",
            "SECOND",
            "THIRD",
            "FOURTH",
            "LAST"
          ],
          "description": "Schedule the event on a specific week."
        },
        "month": {
          "type": "string",
          "enum": [
            "JANUARY",
            "FEBRUARY",
            "MARCH",
            "APRIL",
            "MAY",
            "JUNE",
            "JULY",
            "AUGUST",
            "SEPTEMBER",
            "OCTOBER",
            "NOVEMBER",
            "DECEMBER"
          ],
          "description": "Schedule the event on a specific month."
        }
      }
    }
  }
}