{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/webex/json-schema/webex-call-forward-settings-get-schema.json",
  "title": "CallForwardSettingsGet",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/webex-features-call-queue-api-openapi.yml#/components/schemas/CallForwardSettingsGet",
  "type": "object",
  "required": [
    "callForwarding"
  ],
  "properties": {
    "callForwarding": {
      "type": "object",
      "required": [
        "always",
        "selective"
      ],
      "properties": {
        "always": {
          "type": "object",
          "required": [
            "enabled",
            "ringReminderEnabled",
            "destinationVoicemailEnabled"
          ],
          "properties": {
            "enabled": {
              "type": "boolean",
              "description": "`Always` call forwarding is enabled or disabled."
            },
            "destination": {
              "type": "string",
              "description": "Destination for \"Always\" call forwarding."
            },
            "ringReminderEnabled": {
              "type": "boolean",
              "description": "If `true`, a brief tone will be played on the person's phone when a call has been forwarded."
            },
            "destinationVoicemailEnabled": {
              "type": "boolean",
              "description": "Indicates enabled or disabled state of sending incoming calls to voicemail when the destination is an internal phone number and that number has the voicemail service enabled."
            }
          },
          "description": "Settings for forwarding all incoming calls to the destination you choose."
        },
        "selective": {
          "type": "object",
          "required": [
            "enabled",
            "ringReminderEnabled",
            "destinationVoicemailEnabled"
          ],
          "properties": {
            "enabled": {
              "type": "boolean",
              "description": "`Busy` call forwarding is enabled or disabled."
            },
            "destination": {
              "type": "string",
              "description": "Destination for `Busy` call forwarding."
            },
            "ringReminderEnabled": {
              "type": "boolean",
              "description": "If `true`, a brief tone will be played on the person's phone when a call has been forwarded."
            },
            "destinationVoicemailEnabled": {
              "type": "boolean",
              "description": "Indicates enabled or disabled state of sending incoming calls to voicemail when the destination is an internal phone number and that number has the voicemail service enabled."
            }
          },
          "description": "Selectively forward calls to a designated number, depending on criteria rules. You'll need to have at least one rule for forwarding applied for call forwarding to be active."
        },
        "rules": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CallForwardRulesGet"
          },
          "description": "Rules for selectively forwarding calls."
        },
        "operatingModes": {
          "type": "object",
          "required": [
            "enabled",
            "currentOperatingModeId",
            "exceptionType"
          ],
          "properties": {
            "enabled": {
              "type": "boolean",
              "description": "Operating modes are enabled or disabled."
            },
            "currentOperatingModeId": {
              "type": "string",
              "description": "The ID of the current operating mode."
            },
            "exceptionType": {
              "type": "string",
              "enum": [
                "MANUAL_SWITCH_BACK",
                "AUTOMATIC_SWITCH_BACK_EARLY_START",
                "AUTOMATIC_SWITCH_BACK_EXTENSION",
                "AUTOMATIC_SWITCH_BACK_STANDARD"
              ],
              "description": "The exception type.\n * `MANUAL_SWITCH_BACK` - The mode was switched to or extended by the user for manual switch back and runs as an exception until the user manual switches the feature back to normal operation or a different mode.\n * `AUTOMATIC_SWITCH_BACK_EARLY_START` - The mode was switched to by the user before its start time and runs as an exception until its end time is reached at which point it automatically switches the feature back to normal operation.\n * `AUTOMATIC_SWITCH_BACK_EXTENSION` - The current mode was extended by the user before its end time and runs as an exception until the extension end time (mode's end time + extension of up to 12 hours) is reached at which point it automatically switches the feature back to normal operation.\n * `AUTOMATIC_SWITCH_BACK_STANDARD` - The mode will remain the current operating mode for the feature until its normal end time is reached.\n"
            },
            "modes": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/ModesGet"
              },
              "description": "Operating modes."
            }
          },
          "description": "Settings related to operating modes."
        }
      },
      "description": "Settings related to `Always`, `Busy`, and `No Answer` call forwarding."
    }
  },
  "$defs": {
    "CallForwardRulesGet": {
      "type": "object",
      "required": [
        "id"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "Unique ID for the rule."
        },
        "name": {
          "type": "string",
          "description": "Unique name of rule."
        },
        "callFrom": {
          "type": "string",
          "description": "Comma-separated list of incoming call numbers that, when matched, will not be forwarded. A Limit of 12 numbers is allowed. Use `Any private Number` in the comma-separated value to indicate rules that match incoming calls from a private number. Use `Any unavailable number` in the comma-separated value to match incoming calls from an unavailable number."
        },
        "callsTo": {
          "type": "string",
          "description": "Comma-separated list of the types of numbers being matched for incoming call destination."
        },
        "forwardTo": {
          "type": "string",
          "description": "Number to which calls will be forwarded if the rule is of type \"Forward To\" and the incoming call is matched."
        },
        "enabled": {
          "type": "boolean",
          "description": "Reflects if rule is enabled."
        }
      }
    },
    "ModesGet": {
      "type": "object",
      "required": [
        "normalOperationEnabled",
        "id",
        "name",
        "type",
        "level",
        "forwardTo"
      ],
      "properties": {
        "normalOperationEnabled": {
          "type": "boolean",
          "description": "Normal operation is enabled or disabled."
        },
        "id": {
          "type": "string",
          "description": "The ID of the operating mode."
        },
        "name": {
          "type": "string",
          "description": "The name of the operating mode."
        },
        "type": {
          "type": "string",
          "enum": [
            "NONE",
            "SAME_HOURS_DAILY",
            "DIFFERENT_HOURS_DAILY",
            "HOLIDAY"
          ],
          "description": "The type of the operating mode.\n * `NONE` - The operating mode is not scheduled.\n * `SAME_HOURS_DAILY` - Single time duration for Monday-Friday and single time duration for Saturday-Sunday.\n * `DIFFERENT_HOURS_DAILY` - Individual time durations for every day of the week.\n * `HOLIDAY` - Holidays which have date durations spanning multiple days, as well as an optional yearly recurrence by day or date.\n"
        },
        "level": {
          "type": "string",
          "enum": [
            "LOCATION",
            "ORGANIZATION"
          ],
          "description": "The level of the operating mode.\n * `LOCATION` - The operating mode is at the location level.\n * `ORGANIZATION` - The operating mode is at the organization level.\n"
        },
        "forwardTo": {
          "type": "object",
          "required": [
            "selection",
            "destination",
            "destinationVoicemailEnabled",
            "defaultDestination",
            "defaultDestinationVoicemailEnabled",
            "defaultForwardToSelection"
          ],
          "properties": {
            "selection": {
              "type": "string",
              "enum": [
                "FORWARD_TO_DEFAULT_NUMBER",
                "FORWARD_TO_SPECIFIED_NUMBER",
                "DO_NOT_FORWARD"
              ],
              "description": "The selection for forwarding.\n * `FORWARD_TO_DEFAULT_NUMBER` - When the rule matches, the mode's own default forwarding selection is to be applied.\n * `FORWARD_TO_SPECIFIED_NUMBER` - When the rule matches, forward to the destination.\n * `DO_NOT_FORWARD` - When the rule matches, do not forward to another number.\n"
            },
            "destination": {
              "type": "string",
              "description": "The destination for forwarding. Required when the selection is set to `FORWARD_TO_SPECIFIED_NUMBER`."
            },
            "destinationVoicemailEnabled": {
              "type": "boolean",
              "description": "Sending incoming calls to voicemail is enabled/disabled when the destination is an internal phone number and that number has the voicemail service enabled."
            },
            "defaultDestination": {
              "type": "string",
              "description": "The operating mode's destination."
            },
            "defaultDestinationVoicemailEnabled": {
              "type": "boolean",
              "description": "The operating mode's destination voicemail enabled."
            },
            "defaultForwardToSelection": {
              "type": "string",
              "enum": [
                "FORWARD_TO_SPECIFIED_NUMBER",
                "DO_NOT_FORWARD"
              ],
              "description": "The operating mode's forward to selection.\n * `FORWARD_TO_SPECIFIED_NUMBER` - When the rule matches, forward to the destination.\n * `DO_NOT_FORWARD` - When the rule matches, do not forward to another number.\n"
            }
          },
          "description": "Forward to settings."
        }
      }
    }
  }
}