event_definitions

patch/api/projects/{project_id}/event_definitions/{id}/

Request

  • Base URL: https://us.posthog.com
  • URL: https://us.posthog.com/api/projects/{project_id}/event_definitions/{id}/
  • Auth: HTTP bearer

Path parameters

idstring uuid required

A UUID string identifying this event definition.

project_idstring required

Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.

Request body

idstring uuid
namestring
ownerinteger nullable
descriptionstring nullable
created_atstring date-time nullable
updated_atstring date-time
last_seen_atstring date-time nullable
last_updated_atstring date-time
verifiedboolean
verified_atstring date-time nullable
hiddenboolean nullable
enforcement_mode'allow' | 'reject'
  • allow - Allow
  • reject - Reject
primary_propertystring nullable

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.

is_actionboolean
action_idinteger
is_calculatingboolean
last_calculated_atstring date-time
post_to_slackboolean
default_columnsstring[]
media_preview_urlsstring[]

Response

idstring uuid required
namestring required
ownerinteger nullable
descriptionstring nullable
created_atstring date-time nullable required
updated_atstring date-time required
last_seen_atstring date-time nullable required
last_updated_atstring date-time required
verifiedboolean
verified_atstring date-time nullable required
hiddenboolean nullable
enforcement_mode'allow' | 'reject'
  • allow - Allow
  • reject - Reject
primary_propertystring nullable

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.

is_actionboolean required
action_idinteger required
is_calculatingboolean required
last_calculated_atstring date-time required
post_to_slackboolean
default_columnsstring[]
media_preview_urlsstring[] required

Changes

No recorded changes to this operation across all 1 revision of this API.