PostHog · Schema
PatchedExternalDataSchema
A/B TestingAnalyticsFeature FlagsOpen SourceProduct AnalyticsSession Recording
Properties
| Name | Type | Description |
|---|---|---|
| id | string | |
| name | string | |
| label | string | |
| table | object | |
| should_sync | boolean | |
| last_synced_at | string | |
| latest_error | string | The latest error that occurred when syncing this schema. |
| incremental | boolean | |
| status | string | |
| sync_type | object | Sync strategy: incremental, full_refresh, append, or cdc. * `full_refresh` - full_refresh * `incremental` - incremental * `append` - append * `webhook` - webhook * `cdc` - cdc |
| incremental_field | string | Column name used to track sync progress. |
| incremental_field_type | object | Data type of the incremental field. * `integer` - integer * `numeric` - numeric * `datetime` - datetime * `date` - date * `timestamp` - timestamp * `objectid` - objectid |
| sync_frequency | object | How often to sync. * `never` - never * `1min` - 1min * `5min` - 5min * `15min` - 15min * `30min` - 30min * `1hour` - 1hour * `6hour` - 6hour * `12hour` - 12hour * `24hour` - 24hour * `7day` - 7day * ` |
| sync_time_of_day | string | UTC time of day to run the sync (HH:MM:SS). |
| description | string | |
| primary_key_columns | array | Column names for primary key deduplication. |
| cdc_table_mode | object | For CDC syncs: consolidated, cdc_only, or both. * `consolidated` - consolidated * `cdc_only` - cdc_only * `both` - both |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/PatchedExternalDataSchema",
"title": "PatchedExternalDataSchema",
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"readOnly": true
},
"name": {
"type": "string",
"readOnly": true
},
"label": {
"type": "string",
"readOnly": true,
"nullable": true
},
"table": {
"type": "object",
"additionalProperties": true,
"nullable": true,
"readOnly": true
},
"should_sync": {
"type": "boolean"
},
"last_synced_at": {
"type": "string",
"format": "date-time",
"readOnly": true,
"nullable": true
},
"latest_error": {
"type": "string",
"readOnly": true,
"nullable": true,
"description": "The latest error that occurred when syncing this schema."
},
"incremental": {
"type": "boolean",
"readOnly": true
},
"status": {
"type": "string",
"nullable": true,
"readOnly": true
},
"sync_type": {
"nullable": true,
"description": "Sync strategy: incremental, full_refresh, append, or cdc.\n\n* `full_refresh` - full_refresh\n* `incremental` - incremental\n* `append` - append\n* `webhook` - webhook\n* `cdc` - cdc",
"oneOf": [
{
"$ref": "#/components/schemas/SyncTypeEnum"
},
{
"$ref": "#/components/schemas/NullEnum"
}
]
},
"incremental_field": {
"type": "string",
"nullable": true,
"description": "Column name used to track sync progress."
},
"incremental_field_type": {
"nullable": true,
"description": "Data type of the incremental field.\n\n* `integer` - integer\n* `numeric` - numeric\n* `datetime` - datetime\n* `date` - date\n* `timestamp` - timestamp\n* `objectid` - objectid",
"oneOf": [
{
"$ref": "#/components/schemas/IncrementalFieldTypeEnum"
},
{
"$ref": "#/components/schemas/NullEnum"
}
]
},
"sync_frequency": {
"nullable": true,
"description": "How often to sync.\n\n* `never` - never\n* `1min` - 1min\n* `5min` - 5min\n* `15min` - 15min\n* `30min` - 30min\n* `1hour` - 1hour\n* `6hour` - 6hour\n* `12hour` - 12hour\n* `24hour` - 24hour\n* `7day` - 7day\n* `30day` - 30day",
"oneOf": [
{
"$ref": "#/components/schemas/SyncFrequencyEnum"
},
{
"$ref": "#/components/schemas/NullEnum"
}
]
},
"sync_time_of_day": {
"type": "string",
"format": "time",
"nullable": true,
"description": "UTC time of day to run the sync (HH:MM:SS)."
},
"description": {
"type": "string",
"readOnly": true,
"nullable": true
},
"primary_key_columns": {
"type": "array",
"items": {
"type": "string"
},
"nullable": true,
"description": "Column names for primary key deduplication."
},
"cdc_table_mode": {
"nullable": true,
"description": "For CDC syncs: consolidated, cdc_only, or both.\n\n* `consolidated` - consolidated\n* `cdc_only` - cdc_only\n* `both` - both",
"oneOf": [
{
"$ref": "#/components/schemas/CdcTableModeEnum"
},
{
"$ref": "#/components/schemas/NullEnum"
}
]
}
}
}