provider external_data_sources POST
/api/projects/{project_id}/external_data_sources/{id}/enable_cdc/ @utdk/posthog
/api/projects/{project_id}/external_data_sources/{id}/enable_cdc/ external_data_sources_enable_cdc_create
Enable CDC on an existing source.
Provisions engine-side CDC resources via the source's adapter, writes the CDC
config into ``source.job_inputs``, and ensures the CDC extraction schedule
exists. Re-runs prereq checks server-side so we never trust a stale
client-side check.
Body params: ``cdc_management_mode`` (``"posthog"`` | ``"self_managed"``),
plus engine-specific identifier hints (e.g. ``cdc_slot_name``,
``cdc_publication_name`` for Postgres). Universal tuning fields:
``cdc_auto_drop_slot`` (optional bool), ``cdc_lag_warning_threshold_mb``
(optional int), ``cdc_lag_critical_threshold_mb`` (optional int).
- 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
Code snippet
Updates live as you fill in the form above.
TypeScript
import posthog from '@utdk/posthog';
await posthog.externalDataSourcesEnableCdcCreate()