provider warehouse_saved_queries POST
/api/projects/{project_id}/warehouse_saved_queries/{id}/ancestors/ @utdk/posthog
/api/projects/{project_id}/warehouse_saved_queries/{id}/ancestors/ warehouse_saved_queries_ancestors_create
Return the ancestors of this saved query.
By default, we return the immediate parents. The `level` parameter can be used to
look further back into the ancestor tree. If `level` overshoots (i.e. points to only
ancestors beyond the root), we return an empty list.
- id path required
- A UUID string identifying this data warehouse saved query.
- 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.warehouseSavedQueriesAncestorsCreate()