provider query POST /api/environments/{environment_id}/query/upgrade/
@utdk/posthog /api/environments/{environment_id}/query/upgrade/
environments_query_upgrade_create
Upgrades a query without executing it. Returns a query with all nodes migrated to the latest version.
environment_id path required
Deprecated. Use /api/projects/{project_id}/ instead.
string

Try it

Authentication
Configure credentials for PostHog API
environmentsQueryUpgradeCreate
POST/api/environments/{environment_id}/query/upgrade/
Upgrades a query without executing it. Returns a query with all nodes migrated to the latest version.

Parameters

required

Deprecated. Use /api/projects/{project_id}/ instead.

Input

required

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.environmentsQueryUpgradeCreate()