provider external_data_sources POST
/api/environments/{environment_id}/external_data_sources/preview_resource/ @utdk/posthog
/api/environments/{environment_id}/external_data_sources/preview_resource/ environments_external_data_sources_preview_resource_create
Read a bounded sample of rows for one resource of a Custom REST source.
Lets a manifest author verify `data_selector`, `primary_key`, and the incremental
`cursor_path` against live data before creating the source. Only `source_type: "Custom"`
is supported — other source types return 400. The read is bounded (single page per
resource, capped row count, short timeouts, no redirects). Manifest, validation, and SSRF
problems return 400; a live fetch failure returns 200 with `error` set and empty `rows`.
- environment_id path required
- Deprecated. Use /api/projects/{project_id}/ instead.
- 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.environmentsExternalDataSourcesPreviewResourceCreate({
"limit": 10
})