{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-catalyst-center/json-schema/cisco-catalyst-center-filter-group-create-request-schema.json",
  "title": "FilterGroupCreateRequest",
  "description": "Filter Group create request payload",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-catalyst-center-filtergroups-api-openapi.yml#/components/schemas/FilterGroupCreateRequest",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Filter Group name. Only alphabhets, digits and space is allowed for name."
    },
    "type": {
      "type": "string",
      "description": "The type of the Filter Group.",
      "enum": [
        "Generic",
        "Site",
        "Network",
        "Client"
      ]
    },
    "filters": {
      "type": "array",
      "description": "List of filters used in this Filter Group",
      "items": {
        "$ref": "#/$defs/FilterGroupFilter"
      }
    }
  },
  "$defs": {
    "FilterGroupFilter": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "description": "Field names which are supported by this API as filter keys",
          "enum": [
            "siteHierarchyId",
            "ssid",
            "clientHostName",
            "clientType",
            "clientDeviceType",
            "clientMacAddress",
            "clientIpAddress",
            "networkDeviceType",
            "networkDeviceOsVersion",
            "networkDeviceIpAddress",
            "networkDeviceHostName"
          ]
        },
        "operator": {
          "type": "string",
          "description": "Type of filter operator to use for querying data. `in` and `notIn` operator takes multiple values and applies the filters",
          "enum": [
            "in",
            "eq",
            "like"
          ]
        },
        "value": {
          "type": "object",
          "description": "This should be array if `operator` is `in` and `notIn`. For all other operators this should be a string or a number."
        },
        "displayValue": {
          "type": "object",
          "description": "This field stores desriptive equivalent of the `value` field. For example, this field can be used to store site hierarchy name while the `value` field stores site hierarchy id.",
          "readOnly": true
        }
      },
      "description": "Defines a filter with combination of `key`, `operator` and `value`."
    }
  }
}