provider event_definitions PATCH /api/projects/{project_id}/event_definitions/{id}/
@utdk/posthog /api/projects/{project_id}/event_definitions/{id}/
event_definitions_partial_update
id path required
A UUID string identifying this event definition.
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
eventDefinitionsPartialUpdate
PATCH/api/projects/{project_id}/event_definitions/{id}/

Parameters

required

A UUID string identifying this event definition.

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

* `allow` - Allow * `reject` - Reject

Name of a single property on this event that PostHog UIs should display alongside the event (for example `$pathname` on `$pageview`). When set, surfaces like the session replay inspector show the property's value next to the event name without the user having to open the event.

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.eventDefinitionsPartialUpdate({
  "post_to_slack": false
})