---
title: "Create Exclusion Rule"
method: POST
path: "/v1/config/ingestion/exclusions"
tags: ["Exclusions"]
---

# Create Exclusion Rule

`POST /v1/config/ingestion/exclusions`

Create a new ingestion exclusion rule to help reduce log volume

## Request body

- StreamExclusionRequest
  - `hosts` Hosts[]
  - `apps` Apps[]
  - `title` string, required
  - `active` boolean
  - `indexonly` boolean
  - `query` string — Search query.
  - `id` string

## Response `200`

OK

- StreamExclusionRequest
  - `hosts` Hosts[]
  - `apps` Apps[]
  - `title` string, required
  - `active` boolean
  - `indexonly` boolean
  - `query` string — Search query.
  - `id` string

## Other responses

- `400` — Bad request. Query inside of exclusion rule failed to parse.
- `500` — An internal error occured when trying to create exclusion rule.

---

[API](https://skmtc.net/mezmo/apis/pipeline-api.md) · [All operations](https://skmtc.net/mezmo/apis/pipeline-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mezmo/pipeline-api/revisions/fb2535545d90/schema)
