---
title: "Update a domain's send-settings config"
method: PATCH
path: "/v1/email/domains/{id}/config"
tags: ["Email"]
---

# Update a domain's send-settings config

`PATCH /v1/email/domains/{id}/config`

## Request

- Base URL: `https://api.samva.dev`
- URL: `https://api.samva.dev/v1/email/domains/{id}/config`
- Auth: API key in header `x-api-key`

Overrides the domain's open/click tracking, reply-to, unsubscribe-group defaults, and the brand its mail uses for the settings cascade. An omitted field is left unchanged; null clears it back to the organization default. Returns the saved config.

## Path parameters

- `id` string, required

## Request body

- object
  - `openTracking` boolean, nullable
  - `clickTracking` boolean, nullable
  - `replyTo` string[], nullable
  - `unsubscribeGroupId` string
  - `footerEnabled` boolean, nullable
  - `brandSlug` string, nullable

## Response `200`

Success

- object
  - `id` string, required
  - `openTracking` boolean, nullable, required
  - `clickTracking` boolean, nullable, required
  - `replyTo` string[], nullable, required
  - `unsubscribeGroupId` string, required
  - `footerEnabled` boolean, nullable, required
  - `brandSlug` string, nullable, 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)
