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.

1.6 KB
Raw Blame
{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "properties": {
        "condition_index": {
            "description": "Zero-based position of the release condition in `filters.groups`, counted from the read that produced `version`.",
            "minimum": 0,
            "type": "number"
        },
        "id": {
            "description": "A unique integer value identifying this feature flag.",
            "type": "number"
        },
        "rollout_percentage": {
            "description": "Percentage of the users matching that condition who are served the flag, 0 through 100. On a multivariate flag this is how many matching users get a variant at all, not how the variants are split between them. Fractional percentages such as 0.5 are accepted, the same as a write that sends `filters`.",
            "maximum": 100,
            "minimum": 0,
            "type": "number"
        },
        "version": {
            "anyOf": [
                {
                    "minimum": 0,
                    "type": "number"
                },
                {
                    "type": "null"
                }
            ],
            "description": "The `version` from your most recent read of this flag. The change is refused with 409 if anyone else changed the flag after that version. A flag written before versioning reads as `null`; send that back unchanged and it is read as 0, so the value a read returns is always one this accepts."
        }
    },
    "required": ["id", "condition_index", "rollout_percentage", "version"],
    "type": "object"
}