Update an Inbound Data Filter

PUT /api/0/projects/{organization_slug}/{project_slug}/filters/{filter_id}/

Update various inbound data filters for a project.

Path Parameters

organization_slug (string)
REQUIRED

The slug of the organization the resource belongs to.

project_slug (string)
REQUIRED

The slug of the project the resource belongs to.

filter_id (string)
REQUIRED

The type of filter toggle to update. The options are:

  • browser-extensions - Filter out errors known to be caused by browser extensions.
  • localhost - Filter out events coming from localhost. This applies to both IPv4 (127.0.0.1) and IPv6 (::1) addresses.
  • filtered-transaction - Filter out transactions for healthcheck and ping endpoints.
  • web-crawlers - Filter out known web crawlers. Some crawlers may execute pages in incompatible ways which cause errors that are unlikely to be seen by a normal user.
  • legacy-browser - Filter out known errors from legacy browsers. Older browsers often give less accurate information, and while they may report valid issues, the context to understand them is incorrect or missing.

Body Parameters

active (boolean)

Toggle the browser-extensions, localhost, filtered-transaction, or web-crawlers filter on or off.

subfilters (array(string))
choices:
  • ie
  • edge
  • safari
  • firefox
  • chrome
  • opera
  • android
  • opera_mini
  • ie_pre_9
  • ie9
  • ie10
  • ie11
  • opera_pre_15
  • android_pre_4
  • safari_pre_6
  • opera_mini_pre_8
  • edge_pre_79

Specifies which legacy browser filters should be active. Anything excluded from the list will be disabled. The options are:

  • ie - Internet Explorer Version 11 and lower
  • edge - Edge Version 18 and lower
  • safari - Safari Version 11 and lower
  • firefox - Firefox Version 66 and lower
  • chrome - Chrome Version 62 and lower
  • opera - Opera Version 50 and lower
  • android - Android Version 3 and lower
  • opera_mini - Opera Mini Version 34 and lower

Deprecated options:

  • ie_pre_9 - Internet Explorer Version 8 and lower
  • ie9 - Internet Explorer Version 9
  • ie10 - Internet Explorer Version 10
  • ie11 - Internet Explorer Version 11
  • safari_pre_6 - Safari Version 5 and lower
  • opera_pre_15 - Opera Version 14 and lower
  • opera_mini_pre_8 - Opera Mini Version 8 and lower
  • android_pre_4 - Android Version 3 and lower
  • edge_pre_79 - Edge Version 18 and lower (non Chromium based)

Scopes

<auth_token> requires one of the following scopes:
  • project:admin
  • project:write
curl https://sentry.io/api/0/projects/{organization_slug}/{project_slug}/filters/{filter_id}/ \
 -H 'Authorization: Bearer <auth_token>' \
 -X PUT \
 -H 'Content-Type: application/json' \
 -d '{}'
RESPONSE
No Content.