{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/webex/main/json-schema/webex-simultaneous-ring-criteria-get-schema.json",
  "title": "SimultaneousRingCriteriaGet",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/webex-call-settings-for-me-phase-4-api-openapi.yml#/components/schemas/SimultaneousRingCriteriaGet",
  "type": "object",
  "required": [
    "id",
    "callsFrom",
    "anonymousCallersEnabled",
    "unavailableCallersEnabled",
    "ringEnabled"
  ],
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier for criteria."
    },
    "scheduleName": {
      "type": "string",
      "description": "Name of the schedule which determines when the simultaneous ring is in effect."
    },
    "scheduleType": {
      "$ref": "#/$defs/ScheduleType"
    },
    "scheduleLevel": {
      "$ref": "#/$defs/ScheduleLevel"
    },
    "callsFrom": {
      "$ref": "#/$defs/CallsFromType"
    },
    "anonymousCallersEnabled": {
      "type": "boolean",
      "description": "When `true`, the criteria applies to calls from anonymous callers."
    },
    "unavailableCallersEnabled": {
      "type": "boolean",
      "description": "When `true`, the criteria applies to calls from unavailable callers."
    },
    "phoneNumbers": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The list of phone numbers that will checked against incoming calls for a match."
    },
    "ringEnabled": {
      "type": "boolean",
      "description": "When set to `true` simultaneous ringing is enabled for calls that meet this criteria. Criteria with `ringEnabled` set to `false` take priority."
    }
  },
  "$defs": {
    "CallsFromType": {
      "type": "string",
      "enum": [
        "ANY_PHONE_NUMBER",
        "SELECT_PHONE_NUMBERS"
      ],
      "description": " * `ANY_PHONE_NUMBER` - The Schedule applies to any phone number.\n * `SELECT_PHONE_NUMBERS` - Indicates the schedule applies to select phone number defined in the `phoneNumbers` property.\n"
    },
    "ScheduleLevel": {
      "type": "string",
      "enum": [
        "PEOPLE",
        "GROUP"
      ],
      "description": " * `PEOPLE` - The schedule level that specifies that criteria is of People level.\n * `GROUP` - The schedule level that specifies that criteria is of Group level.\n"
    },
    "ScheduleType": {
      "type": "string",
      "enum": [
        "businessHours",
        "holidays"
      ],
      "description": " * `businessHours` - The schedule type that specifies the business or working hours during the day.\n * `holidays` - The schedule type that specifies the day when your organization is not open.\n"
    }
  }
}