PostHog · Schema

EventDefinition

A/B TestingAnalyticsFeature FlagsOpen SourceProduct AnalyticsSession Recording

Properties

Name Type Description
elements array
event string
properties object
View JSON Schema on GitHub

JSON Schema

posthog-eventdefinition-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/EventDefinition",
  "title": "EventDefinition",
  "additionalProperties": false,
  "properties": {
    "elements": {
      "items": {},
      "title": "Elements",
      "type": "array"
    },
    "event": {
      "title": "Event",
      "type": "string"
    },
    "properties": {
      "type": "object",
      "additionalProperties": true,
      "title": "Properties"
    }
  },
  "required": [
    "elements",
    "event",
    "properties"
  ],
  "type": "object"
}