Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

2.5 KB
Raw Blame
{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "properties": {
        "data": {
            "description": "The property definition data to update",
            "properties": {
                "description": {
                    "description": "Description explaining what the property represents",
                    "type": "string"
                },
                "hidden": {
                    "description": "Mark property as no longer used. Hides it from the UI while preserving historical data",
                    "type": "boolean"
                },
                "property_type": {
                    "description": "The data type of the property. Controls how the property is parsed, displayed, and filtered.",
                    "enum": ["DateTime", "String", "Numeric", "Boolean", "Duration"],
                    "type": "string"
                },
                "tags": {
                    "description": "Tags to organize properties by product area (e.g. \"checkout\", \"onboarding\") or user journey stage (e.g. \"acquisition\", \"activation\", \"monetization\", \"retention\"). Warning: this REPLACES the property's entire tag list, it does not merge. To keep existing tags, include them alongside the new ones; to remove a tag, omit it. Omit this field entirely to leave tags unchanged.",
                    "items": {
                        "type": "string"
                    },
                    "type": "array"
                },
                "verified": {
                    "description": "Mark as verified to indicate the property is correctly instrumented and safe to use",
                    "type": "boolean"
                }
            },
            "type": "object"
        },
        "groupTypeIndex": {
            "description": "Required when type is \"group\": the zero-based index of the group type the property belongs to.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
        },
        "propertyName": {
            "description": "The exact name of the property to update (e.g. \"$browser\", \"plan_type\")",
            "type": "string"
        },
        "type": {
            "default": "event",
            "description": "Which property taxonomy the property belongs to. Defaults to \"event\" (event properties).",
            "enum": ["event", "person", "group", "session"],
            "type": "string"
        }
    },
    "required": ["propertyName", "data"],
    "type": "object"
}