# Update catch-all

> Set or clear the domain's catch-all endpoint.

`PATCH https://inboundr.net/api/v1/domains/{id}`

Sets the [catch-all endpoint](/concepts/domains#catch-all) that all unrouted mail
for the domain is delivered to. Explicit [address routes](/concepts/addresses)
still take precedence.

<ParamField path="id" type="string" required>
  The domain id (`dom_…`).
</ParamField>
<ParamField body="catchAllEndpointId" type="string | null" required>
  An endpoint id (`ep_…`) to deliver unrouted mail to, or `null` to clear
  catch-all.
</ParamField>

<ResponseExample>
```json 200
{
  "id": "dom_123",
  "domain": "yourdomain.com",
  "status": "verified",
  "catchAllEndpointId": "ep_123",
  "updatedAt": "2026-07-20T11:00:00.000Z"
}
```
</ResponseExample>

<Note>Returns `400` if the endpoint id is unknown, or `404` if the domain isn't yours.</Note>
