PostHog · Schema

LocalEvaluationResponse

A/B TestingAnalyticsFeature FlagsOpen SourceProduct AnalyticsSession Recording

Properties

Name Type Description
flags array
group_type_mapping object
cohorts object Cohort definitions keyed by cohort ID. Each value is a property group structure with 'type' (OR/AND) and 'values' (array of property groups or property filters).
View JSON Schema on GitHub

JSON Schema

posthog-localevaluationresponse-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/LocalEvaluationResponse",
  "title": "LocalEvaluationResponse",
  "type": "object",
  "properties": {
    "flags": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/MinimalFeatureFlag"
      }
    },
    "group_type_mapping": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "cohorts": {
      "type": "object",
      "additionalProperties": true,
      "description": "Cohort definitions keyed by cohort ID. Each value is a property group structure with 'type' (OR/AND) and 'values' (array of property groups or property filters)."
    }
  },
  "required": [
    "cohorts",
    "flags",
    "group_type_mapping"
  ]
}