provider event_filter POST /api/projects/{project_id}/event_filter/
@utdk/posthog /api/projects/{project_id}/event_filter/
event_filter_create
Create or update the event filter config.
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
eventFilterCreate
POST/api/projects/{project_id}/event_filter/
Create or update the event filter config.

Parameters

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

* `disabled` - Disabled * `dry_run` - Dry Run * `live` - Live

Boolean expression tree. Nodes: {"type": "and"|"or", "children": [...]}, {"type": "not", "child": {...}}, {"type": "condition", "field": "event_name"|"distinct_id", "operator": "exact"|"contains", "value": "<string>"}

Test events to validate the filter. Each: {"event_name": "...", "distinct_id": "...", "expected_result": "drop"|"ingest"}

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