---
title: "Update catch-all configuration"
method: PATCH
path: "/v1/email/catch-all/config"
tags: ["Email"]
---

# Update catch-all configuration

`PATCH /v1/email/catch-all/config`

## Request

- Base URL: `https://api.samva.dev`
- URL: `https://api.samva.dev/v1/email/catch-all/config`
- Auth: API key in header `x-api-key`

Updates a domain's catch-all receiving configuration: the webhook endpoint that receives its inbound mail.

## Request body

- object
  - `domainId` string, required
  - `endpointId` string

## Response `200`

Success

- object
  - `success` true, required

## Other responses

- `401`: UnauthorizedError
- `403`: ForbiddenError
- `404`: ResourceNotFoundError
- `422`: ValidationError
- `500`: InternalError
- `504`: GatewayTimeoutError

---

[API](https://skmtc.dev/samva/apis/samva-api.md) · [All operations](https://skmtc.dev/samva/apis/samva-api/llms.txt) · [OpenAPI document](https://skmtc.dev/samva/apis/samva-api/revisions/a99408542cc3?raw)
