provider external_data_sources POST /api/projects/{project_id}/external_data_sources/{id}/refresh_schemas/
@utdk/posthog /api/projects/{project_id}/external_data_sources/{id}/refresh_schemas/
external_data_sources_refresh_schemas_create
Fetch current schema/table list from the source and create any new ExternalDataSchema rows (no data sync).
id path required
A UUID string identifying this external data source.
string
project_id path required
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
string

Try it

Authentication
Configure credentials for PostHog API
externalDataSourcesRefreshSchemasCreate
POST/api/projects/{project_id}/external_data_sources/{id}/refresh_schemas/
Fetch current schema/table list from the source and create any new ExternalDataSchema rows (no data sync).

Parameters

required

A UUID string identifying this external data source.

required

Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.

Input

required
required
required

How this source was created. Defaults to `api` on create when omitted. `web` for the in-app UI, `api` for direct API callers, `mcp` for agent/MCP tool calls. Ignored on update. * `web` - web * `api` - api * `mcp` - mcp

required
required
required
required
required
required

Whether this synced source is also live-queryable via direct connection. Defaults to true for new sources; ignored for pure direct-query sources.

required

Backend engine detected for the direct connection. * `duckdb` - duckdb * `postgres` - postgres * `mysql` - mysql * `snowflake` - snowflake

required
required
required
required

The effective access level the user has for this object

required
required

Whether this source supports per-column sync selection via `enabled_columns`.

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import posthog from '@utdk/posthog';

await posthog.externalDataSourcesRefreshSchemasCreate()