provider event_definitions PUT /api/projects/{project_id}/event_definitions/{id}/
@utdk/posthog /api/projects/{project_id}/event_definitions/{id}/
event_definitions_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
eventDefinitionsUpdate
PUT/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

required
required
required
required
required
required
required
required
required

* `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.

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