{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/SelectiveRejectCriteria",
  "title": "SelectiveRejectCriteria",
  "type": "object",
  "required": [
    "id",
    "scheduleName",
    "source",
    "rejectEnabled"
  ],
  "properties": {
    "id": {
      "type": "string",
      "example": "Y2lzY29zcGFyazovL3VzL0NSSVRFUklBLzg2NTAxZDFlLTg1MWMtNDgwYi1hZmE2LTA5MTU4NzQ3NzdmZQ",
      "description": "Unique identifier for criteria."
    },
    "scheduleName": {
      "type": "string",
      "example": "Business Vacation",
      "description": "Name of the location's schedule which determines when the selective reject is in effect."
    },
    "source": {
      "$ref": "#/components/schemas/SelectiveRejectCallSource",
      "description": "If criteria are applicable for calls from any phone number, specific phone number or forwarded ones."
    },
    "rejectEnabled": {
      "type": "boolean",
      "example": true,
      "description": "This setting specifies to choose to reject or not to reject the calls that fit within these parameters."
    }
  }
}