provider js-snippet PATCH /api/projects/{project_id}/js-snippet/version/
@utdk/posthog /api/projects/{project_id}/js-snippet/version/
js_snippet_version_partial_update
Update the team's version pin.
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
jsSnippetVersionPartialUpdate
PATCH/api/projects/{project_id}/js-snippet/version/
Update the team's version pin.

Parameters

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

Version pin: null for latest, "1.358.0" for exact, "1" for major, "1.358" for minor

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