PostHog · Schema

EventSchema

A/B TestingAnalyticsFeature FlagsOpen SourceProduct AnalyticsSession Recording

Properties

Name Type Description
id string
event_definition string
property_group object
property_group_id string
created_at string
updated_at string
View JSON Schema on GitHub

JSON Schema

posthog-eventschema-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/EventSchema",
  "title": "EventSchema",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "readOnly": true
    },
    "event_definition": {
      "type": "string",
      "format": "uuid"
    },
    "property_group": {
      "allOf": [
        {
          "$ref": "#/components/schemas/SchemaPropertyGroup"
        }
      ],
      "readOnly": true
    },
    "property_group_id": {
      "type": "string",
      "format": "uuid",
      "writeOnly": true
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "readOnly": true
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "readOnly": true
    }
  },
  "required": [
    "created_at",
    "event_definition",
    "id",
    "property_group",
    "property_group_id",
    "updated_at"
  ]
}