{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/PlaceSelectiveForwardCallCriteriaGet",
  "title": "PlaceSelectiveForwardCallCriteriaGet",
  "type": "object",
  "required": [
    "id",
    "callsFrom"
  ],
  "properties": {
    "id": {
      "type": "string",
      "example": "Y2lzY29zcGFyazovL3VzL0NSSVRFUklBLzg2NTAxZDFlLTg1MWMtNDgwYi1hZmE2LTA5MTU4NzQ3NzdmZQ",
      "description": "Unique identifier for criteria."
    },
    "forwardToPhoneNumber": {
      "type": "string",
      "example": "+1934898988",
      "description": "Phone number to forward calls to during this schedule."
    },
    "sendToVoicemailEnabled": {
      "type": "boolean",
      "description": "Enables forwarding for all calls to voicemail. This option is only available for internal phone numbers or extensions."
    },
    "scheduleName": {
      "type": "string",
      "example": "Business Vacation",
      "description": "Name of the location's schedule which determines when the selective forward is in effect."
    },
    "scheduleType": {
      "$ref": "#/components/schemas/ScheduleTypeSelection",
      "description": "The Schedule type whether `businessHours` or `holidays`."
    },
    "scheduleLevel": {
      "$ref": "#/components/schemas/PlaceScheduleLevel",
      "description": "The Schedule level i.e, Group."
    },
    "callsFrom": {
      "$ref": "#/components/schemas/CallsFromTypeForSelectiveForward",
      "description": "Indicates whether to apply the selective forward criteria for calls from Any Phone Number, Select Phone Numbers or Forwarded ones."
    },
    "anonymousCallersEnabled": {
      "type": "boolean",
      "example": true,
      "description": "When `true`, enables selective forward to calls from anonymous callers."
    },
    "unavailableCallersEnabled": {
      "type": "boolean",
      "example": true,
      "description": "When `true`, enables selective forward to calls if the callers are unavailable."
    },
    "numbers": {
      "type": "array",
      "items": {
        "type": "string",
        "example": "+19075552859,+19186663950"
      },
      "description": "List of phone numbers checked against incoming calls for a match."
    },
    "forwardEnabled": {
      "type": "boolean",
      "example": true,
      "description": "Indicates whether the calls, that fit within these parameters, will be forwarded (if forwardEnabled = `true`) or not (if forwardEnabled = `false`)."
    }
  }
}