{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/SelectiveRejectCallCriteriaPatch",
  "title": "SelectiveRejectCallCriteriaPatch",
  "type": "object",
  "required": [
    "callsFrom",
    "rejectEnabled"
  ],
  "properties": {
    "scheduleName": {
      "type": "string",
      "example": "CFS-Criteria-F-2",
      "description": "Name of the schedule to which the criteria is created."
    },
    "scheduleType": {
      "$ref": "#/components/schemas/ScheduleType",
      "description": "schedule type."
    },
    "scheduleLevel": {
      "$ref": "#/components/schemas/ScheduleLevel",
      "description": "schedule level of the criteria."
    },
    "callsFrom": {
      "$ref": "#/components/schemas/CallsFrom",
      "description": "Reject calls selection."
    },
    "anonymousCallersEnabled": {
      "type": "boolean",
      "example": true,
      "description": "Boolean flag indicating if calls from custom numbers, private numbers are enabled."
    },
    "unavailableCallersEnabled": {
      "type": "boolean",
      "example": true,
      "description": "Boolean flag indicating if calls from custom numbers, unavailable numbers are enabled."
    },
    "phoneNumbers": {
      "type": "array",
      "items": {
        "type": "string",
        "example": "[\"+1986751234\",\"+1986751234\"]"
      },
      "description": "List of phone numbers. It does not include extensions. In some regions phone numbers are not returned in E.164 format. This will be supported in a future update."
    },
    "rejectEnabled": {
      "type": "boolean",
      "example": true,
      "description": "Boolean flag to enable/disable rejection."
    }
  }
}