HubSpot · Schema

FilterGroup

A group of filters combined with AND logic

AnalyticsCommerceContentCRMCustomer ServiceEmail MarketingMarketingMarketing AutomationOperationsSales

Properties

Name Type Description
filters array
View JSON Schema on GitHub

JSON Schema

hubspot-commerce-payments-filter-group-schema.json Raw ↑
{
  "type": "object",
  "description": "A group of filters combined with AND logic",
  "properties": {
    "filters": {
      "type": "array",
      "example": [
        {
          "propertyName": "Example Record",
          "operator": "EQ",
          "value": "example-value",
          "values": [
            {}
          ],
          "highValue": "example-value"
        }
      ],
      "items": {
        "type": "object",
        "description": "A single filter criterion",
        "properties": {
          "propertyName": {
            "type": "string",
            "description": "The property to filter on",
            "example": "Example Record"
          },
          "operator": {
            "type": "string",
            "description": "The comparison operator",
            "example": "EQ",
            "enum": [
              "EQ",
              "NEQ",
              "LT",
              "LTE",
              "GT",
              "GTE",
              "BETWEEN",
              "IN",
              "NOT_IN",
              "HAS_PROPERTY",
              "NOT_HAS_PROPERTY",
              "CONTAINS_TOKEN",
              "NOT_CONTAINS_TOKEN"
            ]
          },
          "value": {
            "type": "string",
            "description": "The value to compare against",
            "example": "example-value"
          },
          "values": {
            "type": "array",
            "description": "Values for IN/NOT_IN operators",
            "example": [
              "example-value"
            ],
            "items": {
              "type": "string"
            }
          },
          "highValue": {
            "type": "string",
            "description": "Upper bound for BETWEEN operator",
            "example": "example-value"
          }
        },
        "required": [
          "propertyName",
          "operator"
        ]
      }
    }
  },
  "required": [
    "filters"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "FilterGroup"
}