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.8 KB
Raw Blame
{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "properties": {
        "delete_view": {
            "description": "Deprecate only: true to delete the view instead of marking it deprecated. Deleting also drops its stored table and refreshes, and cannot be undone. Refused when another view now reads it, or when it feeds person properties, account properties, a destination or a workflow. Refused with a 400 when any day in the read window has no read data, because a view read only on those days would look unread.",
            "type": "boolean"
        },
        "id": {
            "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
            "type": "string"
        },
        "incremental_key": {
            "description": "Materialize only, incremental refresh only: an output column whose value only grows as rows arrive, such as a date, a datetime or an increasing number, instead of the proposed one. view-check-incremental lists the columns that qualify. Omit to keep the proposed key.",
            "type": "string"
        },
        "keep_materialized": {
            "description": "Deprecate only: true to keep a materialized view refreshing after it is deprecated. By default, accepting a deprecate suggestion also stops the view's refreshes and deletes its stored table, unless other views or syncs depend on it.",
            "type": "boolean"
        },
        "lookback_seconds": {
            "description": "Materialize only, incremental refresh only: how far before the last refresh's highest incremental_key value each refresh reads again, in seconds, so late rows are picked up. Omit to keep the proposed lookback.",
            "maximum": 2592000,
            "minimum": 0,
            "type": "number"
        },
        "refresh_interval_seconds": {
            "description": "Materialize only: refresh interval to use instead of the proposed one, in seconds. Omit to keep the proposed interval.",
            "maximum": 2592000,
            "minimum": 1,
            "type": "number"
        },
        "refresh_mode": {
            "description": "Materialize only: incremental or full, instead of the proposed refresh_mode. Omit to keep the proposed one. Switching to incremental needs incremental_key and unique_key when the payload has none.\n\n* `full` - Full\n* `incremental` - Incremental",
            "enum": ["full", "incremental"],
            "type": "string"
        },
        "unique_key": {
            "description": "Materialize only, incremental refresh only: output columns that identify a row, instead of the proposed ones. Must include every GROUP BY column. Omit to keep the proposed key.",
            "items": {
                "type": "string"
            },
            "type": "array"
        }
    },
    "required": ["id"],
    "type": "object"
}