provider project_secret_api_keys PUT /api/projects/{project_id}/project_secret_api_keys/{id}/
@utdk/posthog /api/projects/{project_id}/project_secret_api_keys/{id}/
project_secret_api_keys_update
id path required
A unique value identifying this project secret api key.
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
projectSecretApiKeysUpdate
PUT/api/projects/{project_id}/project_secret_api_keys/{id}/

Parameters

required

A unique value identifying this project secret api key.

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

required
required
required
required
required
required
required
required
required

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