PostHog · Schema

CohortPropertyFilter

A/B TestingAnalyticsFeature FlagsOpen SourceProduct AnalyticsSession Recording

Properties

Name Type Description
cohort_name string
key string
label string
operator object
type string
value integer
View JSON Schema on GitHub

JSON Schema

posthog-cohortpropertyfilter-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/CohortPropertyFilter",
  "title": "CohortPropertyFilter",
  "additionalProperties": false,
  "properties": {
    "cohort_name": {
      "default": null,
      "title": "Cohort Name",
      "type": "string",
      "nullable": true
    },
    "key": {
      "default": "id",
      "title": "Key",
      "type": "string",
      "enum": [
        "id"
      ]
    },
    "label": {
      "default": null,
      "title": "Label",
      "type": "string",
      "nullable": true
    },
    "operator": {
      "default": "in",
      "allOf": [
        {
          "$ref": "#/components/schemas/PropertyOperator"
        }
      ],
      "nullable": true
    },
    "type": {
      "default": "cohort",
      "title": "Type",
      "type": "string",
      "enum": [
        "cohort"
      ]
    },
    "value": {
      "title": "Value",
      "type": "integer"
    }
  },
  "required": [
    "value"
  ],
  "type": "object"
}