provider warehouse_tables POST
/api/environments/{environment_id}/warehouse_tables/{id}/refresh_schema/ @utdk/posthog
/api/environments/{environment_id}/warehouse_tables/{id}/refresh_schema/ Refresh table schema from source
Re-introspect a self-managed (manually linked) warehouse table's schema from its underlying source files and overwrite its stored column list. Use when the source schema has evolved (e.g. new columns in the underlying Delta/Parquet/CSV files) but queries still can't see the new columns, because PostHog serves a cached column snapshot until the table is refreshed. Not for tables managed by an external data source sync — those refresh on their own schedule.
- environment_id path required
- Deprecated. Use /api/projects/{project_id}/ instead.
- string
- id path required
- A UUID string identifying this data warehouse table.
- string
Try it
Authentication
Configure credentials for PostHog API
Code snippet
Updates live as you fill in the form above.
TypeScript
import posthog from '@utdk/posthog';
await posthog.environmentsWarehouseTablesRefreshSchemaCreate()