provider project_secret_api_keys PATCH /api/environments/{environment_id}/project_secret_api_keys/{id}/
@utdk/posthog /api/environments/{environment_id}/project_secret_api_keys/{id}/
environments_project_secret_api_keys_partial_update
environment_id path required
Deprecated. Use /api/projects/{project_id}/ instead.
string
id path required
A unique value identifying this project secret api key.
string

Try it

Authentication
Configure credentials for PostHog API
environmentsProjectSecretApiKeysPartialUpdate
PATCH/api/environments/{environment_id}/project_secret_api_keys/{id}/

Parameters

required

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

required

A unique value identifying this project secret api key.

Input

Project-wide API scopes granted to this key. Project secret API keys do not honor object-level access controls, so a scope can access resources of that type even when per-resource RBAC would hide them from an individual user.

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