{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-connect/json-schema/amazon-connect-update-hours-of-operation-override-request-schema.json",
  "title": "UpdateHoursOfOperationOverrideRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-connect-overrides-api-openapi.yml#/components/schemas/UpdateHoursOfOperationOverrideRequest",
  "type": "object",
  "properties": {
    "InstanceId": {
      "type": "string",
      "description": "The identifier of the Connect Customer instance."
    },
    "HoursOfOperationId": {
      "type": "string",
      "description": "The identifier for the hours of operation."
    },
    "HoursOfOperationOverrideId": {
      "type": "string",
      "description": "The identifier for the hours of operation override."
    },
    "Name": {
      "type": "string",
      "description": "The name of the hours of operation override."
    },
    "Description": {
      "type": "string",
      "description": "The description of the hours of operation override."
    },
    "Config": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/HoursOfOperationOverrideConfig"
      },
      "description": "Configuration information for the hours of operation override: day, start time, and end time."
    },
    "EffectiveFrom": {
      "type": "string",
      "description": "The date from when the hours of operation override would be effective."
    },
    "EffectiveTill": {
      "type": "string",
      "description": "The date until the hours of operation override is effective."
    },
    "RecurrenceConfig": {
      "$ref": "#/$defs/RecurrenceConfig"
    },
    "OverrideType": {
      "type": "string",
      "enum": [
        "STANDARD",
        "OPEN",
        "CLOSED"
      ],
      "description": "Whether the override will be defined as a standard or as a recurring event. For more information about how override types are applied, see Build your list of overrides in the Administrator Guide."
    }
  },
  "required": [
    "InstanceId",
    "HoursOfOperationId",
    "HoursOfOperationOverrideId"
  ],
  "$defs": {
    "HoursOfOperationOverrideConfig": {
      "type": "object",
      "properties": {
        "Day": {
          "type": "string",
          "enum": [
            "SUNDAY",
            "MONDAY",
            "TUESDAY",
            "WEDNESDAY",
            "THURSDAY",
            "FRIDAY",
            "SATURDAY"
          ],
          "description": "The day that the hours of operation override applies to."
        },
        "StartTime": {
          "$ref": "#/$defs/OverrideTimeSlice"
        },
        "EndTime": {
          "$ref": "#/$defs/OverrideTimeSlice"
        }
      }
    },
    "OverrideTimeSlice": {
      "type": "object",
      "properties": {
        "Hours": {
          "type": "integer",
          "description": "The hours."
        },
        "Minutes": {
          "type": "integer",
          "description": "The minutes."
        }
      },
      "required": [
        "Hours",
        "Minutes"
      ]
    },
    "RecurrenceConfig": {
      "type": "object",
      "properties": {
        "RecurrencePattern": {
          "$ref": "#/$defs/RecurrencePattern"
        }
      },
      "required": [
        "RecurrencePattern"
      ]
    },
    "RecurrencePattern": {
      "type": "object",
      "properties": {
        "Frequency": {
          "type": "string",
          "enum": [
            "WEEKLY",
            "MONTHLY",
            "YEARLY"
          ],
          "description": "Defines how often the pattern repeats. This is the base unit for the recurrence schedule and works in conjunction with the Interval field to determine the exact repetition sequence."
        },
        "Interval": {
          "type": "integer",
          "description": "Specifies the number of frequency units between each occurrence. Must be a positive integer. Examples: To repeat every week, set Interval=1 with WEEKLY frequency. To repeat every two months, set Interval=2 with MONTHLY frequency."
        },
        "ByMonth": {
          "type": "array",
          "items": {
            "type": "integer"
          },
          "description": "Specifies which month the event should occur in (1-12, where 1=January, 12=December). Used with YEARLY frequency to schedule events in specific month. Note: It does not accept multiple values in the same list"
        },
        "ByMonthDay": {
          "type": "array",
          "items": {
            "type": "integer"
          },
          "description": "Specifies which day of the month the event should occur on (1-31). Used with MONTHLY or YEARLY frequency to schedule events on specific date within a month. Examples: [15] for events on the 15th of each month, [-1] for events on the last day of month. Note: It does not accept multiple values in the same list. If a specified day doesn't exist in a particular month (e.g., day 31 in February), the event will be skipped for that month. This field cannot be used simultaneously with ByWeekdayOccurrence as they represent different scheduling approaches (specific dates vs. relative weekday positions)."
        },
        "ByWeekdayOccurrence": {
          "type": "array",
          "items": {
            "type": "integer"
          },
          "description": "Specifies which occurrence of a weekday within the month the event should occur on. Must be used with MONTHLY or YEARLY frequency. Example: 2 corresponds to second occurrence of the weekday in the month. -1 corresponds to last occurrence of the weekday in the month The weekday itself is specified separately in the HoursOfOperationConfig. Example: To schedule the recurring event for the 2nd Thursday of April every year, set ByWeekdayOccurrence=[2], Day=THURSDAY, ByMonth=[4], Frequency: YEARLY and INTERVAL=1."
        }
      },
      "required": [
        "Frequency",
        "Interval"
      ]
    }
  }
}