{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/webex/json-schema/webex-operating-mode-list-get-object-schema.json",
  "title": "OperatingModeListGetObject",
  "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/OperatingModeListGetObject",
  "type": "object",
  "required": [
    "id",
    "name",
    "type",
    "level",
    "callForwarding"
  ],
  "properties": {
    "id": {
      "type": "string",
      "description": "A unique identifier for the `operating mode`."
    },
    "name": {
      "type": "string",
      "description": "Unique name for the `operating mode`."
    },
    "type": {
      "$ref": "#/$defs/OperatingModeScheduleTypeObject",
      "description": "Defines the scheduling of the `operating mode`."
    },
    "level": {
      "$ref": "#/$defs/OrgLocLevelObject",
      "description": "Level at which the `operating mode` would be defined."
    },
    "location": {
      "$ref": "#/$defs/LocationObject",
      "description": "Location object having a unique identifier for the location, and its name. Mandatory if level is `LOCATION`."
    },
    "callForwarding": {
      "$ref": "#/$defs/OperatingModeCallForwarding",
      "description": "Call forwarding settings for an `operating mode`."
    }
  },
  "$defs": {
    "LocationObject": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The ID of the location."
        },
        "name": {
          "type": "string",
          "description": "The name of the location."
        }
      }
    },
    "OperatingModeCallForwarding": {
      "type": "object",
      "required": [
        "enabled",
        "destination",
        "destinationVoicemailEnabled"
      ],
      "properties": {
        "enabled": {
          "type": "boolean",
          "description": "Call forwarding is enabled, or disabled. `False` if the flag is not set."
        },
        "destination": {
          "type": "string",
          "description": "The destination for forwarding."
        },
        "destinationVoicemailEnabled": {
          "type": "boolean",
          "description": "The destination voicemail enabled. `False` if the flag is not set."
        }
      }
    },
    "OperatingModeScheduleTypeObject": {
      "type": "string",
      "enum": [
        "SAME_HOURS_DAILY",
        "DIFFERENT_HOURS_DAILY",
        "HOLIDAY",
        "NONE"
      ],
      "description": " * `SAME_HOURS_DAILY` - Specifies the `operating mode` is active during the same hours daily (i.e., same schedule for Monday to Friday, and Saturday to Sunday).\n * `DIFFERENT_HOURS_DAILY` - Specifies the `operating mode` is active during different hours for different days of the week.\n * `HOLIDAY` - Specifies the `operating mode` is active during holidays with their own days, and recurrence.\n * `NONE` - Specifies the `operating mode` doesn't have any schedules defined.\n"
    },
    "OrgLocLevelObject": {
      "type": "string",
      "enum": [
        "ORGANIZATION",
        "LOCATION"
      ],
      "description": " * `ORGANIZATION` - Specifies this `operating mode` is configured across the organization.\n * `LOCATION` - Specifies this `operating mode` is configured across a location.\n"
    }
  }
}