---
title: "Add and remove sender matchers across many funder exclusion rules"
method: PATCH
path: "/api/funder_exclusion_rules/bulk/"
---

# Add and remove sender matchers across many funder exclusion rules

`PATCH /api/funder_exclusion_rules/bulk/`

## Request

- Base URL: `https://app.herondata.io`
- URL: `https://app.herondata.io/api/funder_exclusion_rules/bulk/`
- Auth: API key in header `x-api-key`

A rule left with no senders is deleted.

## Request body

- BulkFunderExclusionRuleUpdateSchema
  - `add` FunderExclusionSenderIdentitySchema
    - `sender_domains` string[]
    - `sender_emails` string[]
    - `sender_names` string[]
  - `funder_heron_ids` string[], required
  - `remove` FunderExclusionSenderIdentitySchema
    - `sender_domains` string[]
    - `sender_emails` string[]
    - `sender_names` string[]

## Response `200`

Outcome per deduplicated funder, in request order; key by funder_heron_id, not index

- BulkFunderExclusionRuleResultSchema[]
  - `action` 'created' | 'updated' | 'unchanged' | 'deleted'
  - `funder_heron_id` string

## Other responses

- `400`: Nothing to add or remove
- `404`: Broker customer, funder, or funder exclusion rule not found
- `422`: Invalid request body

## Changes

- **2026-11-03** `bd8008e49534`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/herondata/apis/heron-data-api/changes/api/funder_exclusion_rules/bulk/patch.md)

---

[API](https://skmtc.dev/herondata/apis/heron-data-api.md) - [All operations](https://skmtc.dev/herondata/apis/heron-data-api/llms.txt) - [OpenAPI document](https://skmtc.dev/herondata/apis/heron-data-api/revisions/1ec936e17fef?raw)
