PostHog · Schema

FeatureFlagFilterPropertyDateSchema

A/B TestingAnalyticsFeature FlagsOpen SourceProduct AnalyticsSession Recording

Properties

Name Type Description
key string Property key used in this feature flag condition.
type object Property filter type. Common values are 'person' and 'cohort'. * `cohort` - cohort * `person` - person * `group` - group
cohort_name string Resolved cohort name for cohort-type filters.
group_type_index integer Group type index when using group-based filters.
operator object Date comparison operator. * `is_date_exact` - is_date_exact * `is_date_after` - is_date_after * `is_date_before` - is_date_before
value string Date value in ISO format or relative date expression.
View JSON Schema on GitHub

JSON Schema

posthog-featureflagfilterpropertydateschema-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/FeatureFlagFilterPropertyDateSchema",
  "title": "FeatureFlagFilterPropertyDateSchema",
  "type": "object",
  "properties": {
    "key": {
      "type": "string",
      "description": "Property key used in this feature flag condition."
    },
    "type": {
      "allOf": [
        {
          "$ref": "#/components/schemas/PropertyGroupTypeEnum"
        }
      ],
      "description": "Property filter type. Common values are 'person' and 'cohort'.\n\n* `cohort` - cohort\n* `person` - person\n* `group` - group"
    },
    "cohort_name": {
      "type": "string",
      "nullable": true,
      "description": "Resolved cohort name for cohort-type filters."
    },
    "group_type_index": {
      "type": "integer",
      "nullable": true,
      "description": "Group type index when using group-based filters."
    },
    "operator": {
      "allOf": [
        {
          "$ref": "#/components/schemas/DateOperatorEnum"
        }
      ],
      "description": "Date comparison operator.\n\n* `is_date_exact` - is_date_exact\n* `is_date_after` - is_date_after\n* `is_date_before` - is_date_before"
    },
    "value": {
      "type": "string",
      "description": "Date value in ISO format or relative date expression."
    }
  },
  "required": [
    "key",
    "operator",
    "value"
  ]
}