---
title: "Update a Custom Inbound Filter"
url: https://docs.sentry.io/api/projects/update-a-custom-inbound-filter/
---

# Update a Custom Inbound Filter | Sentry Docs

ExperimentalThis API is under active development and may change.

PUT /api/0/projects/{organization\_id\_or\_slug}/{project\_id\_or\_slug}/custom-inbound-filters/{filter\_id}/

Update a custom inbound filter's name, active state, or conditions.

### Path Parameters

* `organization_id_or_slug` *(string)*

  REQUIRED

  The ID or slug of the organization the resource belongs to.

* `project_id_or_slug` *(string)*

  REQUIRED

  The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.

* `filter_id` *(string)*

  REQUIRED

  The ID of the custom inbound filter.

### Body Parameters

* `name` *(string)*

  A human-readable label for the filter.

* `active` *(boolean)*

  Whether the filter drops matching data. An inactive filter is kept but ignored.

* `dataType` *(string)*

  The data the filter matches against. `all` is the catch-all: it filters every data type Sentry ingests, including ones added later, and accepts only the conditions that every data type carries a field for.

  * `all`
  * `error`
  * `log`
  * `metric`
  * `span`

* `conditions` *(array(object))*

  Conditions are combined with AND: an event must match every condition to be filtered out. There is no OR between conditions, so e.g. two release conditions can express a range (`gte 2.0` and `lt 4.0`). To broaden matching, widen a condition's values or add separate filters.

### Scopes

You need to [authenticate via bearer auth token.](https://docs.sentry.io/api/auth.md)

`<auth_token>` requires one of the following scopes:

* `project:admin`
* `project:write`

```
curl https://sentry.io/api/0/projects/{organization_id_or_slug}/{project_id_or_slug}/custom-inbound-filters/{filter_id}/ \
 -H 'Authorization: Bearer <auth_token>' \
 -X PUT \
 -H 'Content-Type: application/json' \
 -d '{}'
```

RESPONSESCHEMA

```
Copied
{
  "id": "42",
  "name": "Drop TypeErrors from the 1.x releases",
  "active": true,
  "dataType": "error",
  "conditions": [
    {
      "type": "error_type",
      "operator": "equals",
      "value": [
        "TypeError"
      ]
    },
    {
      "type": "error_message",
      "operator": "contains",
      "value": [
        "undefined"
      ]
    },
    {
      "type": "release",
      "operator": "lt",
      "value": [
        "2.0.0"
      ]
    }
  ],
  "dateCreated": "2024-07-23T17:52:53.981206Z",
  "dateUpdated": "2024-07-23T17:52:53.981206Z",
  "legacyFilter": null
}
```

---

Find other pages: [Sitemap](https://docs.sentry.io/sitemap.md) lists every page with a one-line summary, and [llms.txt](https://docs.sentry.io/llms.txt) gives an overview with guidance for agents.
