provider error_tracking POST /api/environments/{environment_id}/error_tracking/suppression_rules/
@utdk/posthog /api/environments/{environment_id}/error_tracking/suppression_rules/
environments_error_tracking_suppression_rules_create
environment_id path required
Deprecated. Use /api/projects/{project_id}/ instead.
string

Try it

Authentication
Configure credentials for PostHog API
environmentsErrorTrackingSuppressionRulesCreate
POST/api/environments/{environment_id}/error_tracking/suppression_rules/

Parameters

required

Deprecated. Use /api/projects/{project_id}/ instead.

Input

Optional property-group filters that define which incoming error events should be suppressed. Omit this field or provide an empty `values` array to create a match-all suppression rule.

Probability that a matching event is dropped. `1.0` drops every match (default); `0.0` drops none; `0.5` drops half. Higher values suppress more.

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.environmentsErrorTrackingSuppressionRulesCreate({
  "sampling_rate": 1
})