event_definitions

post/api/projects/{project_id}/event_definitions/

Request

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

Path parameters

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 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

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.