: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"id": {
"description": "A UUID string identifying this external data source.",
"type": "string"
},
"schemas": {
"description": "Schema updates to apply in a single batch.",
"items": {
"properties": {
"apply_sync_defaults": {
"description": "When true and the schema has no sync method configured yet (and this update does not set one), discover the table on the source and fill in default sync settings: incremental sync with an auto-selected tracking column where supported, otherwise append, otherwise full refresh. Ignored for schemas that already have a sync method.",
"type": "boolean"
},
"cdc_table_mode": {
"anyOf": [
{
"description": "* `consolidated` - consolidated\n* `cdc_only` - cdc_only\n* `both` - both",
"enum": ["consolidated", "cdc_only", "both"],
"type": "string"
},
{
"type": "null"
}
],
"description": "How CDC-backed tables should be exposed.\n\n* `consolidated` - consolidated\n* `cdc_only` - cdc_only\n* `both` - both"
},
"enabled_columns": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"description": "Columns to sync. Null means sync all columns."
},
"full_refresh_interval_days": {
"anyOf": [
{
"maximum": 90,
"minimum": 1,
"type": "number"
},
{
"type": "null"
}
],
"description": "Days between scheduled full refreshes, from 1 to 90, or null for none. A full refresh wipes the table and re-imports every row. Re-imported rows count toward usage, and workflows and destinations that run on new rows of the table run again for every row. Incremental, append, and xmin syncs only, and never shorter than the sync frequency."
},
"full_refresh_time_of_day": {
"anyOf": [
{
"pattern": "^(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?$",
"type": "string"
},
{
"type": "null"
}
],
"description": "UTC time of day (HH:MM:SS) that scheduled full refreshes are due, for example outside working hours. The refresh runs on the first scheduled sync from up to an hour before this time, so on a table that syncs every few hours it can run hours later. Each interval counts from the slot of this time that the last refresh or save served, where a slot less than an hour away counts as served. Saving a new time restarts the clock, so the first refresh after a save can come up to a day before a full interval has passed. Null counts the interval from when it was saved or from the last full resync. Cleared when full_refresh_interval_days is null."
},
"id": {
"description": "Schema identifier to update.",
"type": "string"
},
"incremental_field": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Incremental cursor field for incremental or append syncs."
},
"incremental_field_type": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Type of the incremental cursor field."
},
"masked_columns": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"description": "Columns whose values are replaced with a one-way digest at sync time. Null means mask nothing. Any change starts a full resync of the table."
},
"primary_key_columns": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"description": "Column names for primary key deduplication."
},
"row_filters": {
"anyOf": [
{
"items": {
"properties": {
"column": {
"type": "string"
},
"operator": {
"description": "One of: > >= < <= = != IN \"NOT IN\".",
"type": "string"
},
"value": {
"description": "Comparison value; must match the column's type. For `IN` / `NOT IN`, a comma-separated list (e.g. `1, 2, 3` or `'a','b'`)."
}
},
"required": ["column", "operator", "value"],
"type": "object"
},
"type": "array"
},
{
"type": "null"
}
],
"description": "Row-filter predicates ANDed onto the source query. Null/empty means sync all rows."
},
"should_sync": {
"description": "Whether the schema should be queryable/synced.",
"type": "boolean"
},
"sync_frequency": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Human-readable sync frequency value."
},
"sync_time_of_day": {
"anyOf": [
{
"pattern": "^(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?$",
"type": "string"
},
{
"type": "null"
}
],
"description": "UTC anchor time for scheduled syncs."
},
"sync_type": {
"anyOf": [
{
"description": "* `full_refresh` - full_refresh\n* `incremental` - incremental\n* `append` - append\n* `webhook` - webhook\n* `cdc` - cdc\n* `xmin` - xmin",
"enum": ["full_refresh", "incremental", "append", "webhook", "cdc", "xmin"],
"type": "string"
},
{
"type": "null"
}
],
"description": "Requested sync mode for the schema (incremental, full_refresh, append, cdc, or xmin).\n\n* `full_refresh` - full_refresh\n* `incremental` - incremental\n* `append` - append\n* `webhook` - webhook\n* `cdc` - cdc\n* `xmin` - xmin"
}
},
"required": ["id"],
"type": "object"
},
"type": "array"
}
},
"required": ["id", "schemas"],
"type": "object"
}