---
title: "edit mail server"
method: PATCH
path: "/api/v1/mails/{mailServerID}"
tags: ["mails"]
---

# edit mail server

`PATCH /api/v1/mails/{mailServerID}`

## Path parameters

- `mailServerID` string, required

## Request body

- Model8
  - `mode` 'DEV' | 'LIVE', required
  - `inboundSpamThreshold` number, required

## Response `200`

OK

- object
  - `status` string

## Other responses

- `400` — Bad Request
- `404` — Mail Server not found
- `500` — Unexpected error

## Changes

- **2023-10-08** `ee3ac526ce9a` — 1 breaking, 1 info
  - added the new required request property `inboundSpamThreshold`
  - api operation id `changeMailServerMode` removed and replaced with `editMailServer`
- **2023-10-06** `6ba885651c6f` — 1 breaking, 2 info
  - removed the media type `*/*` from the request body
  - added the media type `application/json` to the request body
  - added the media type `application/json` for the response with the status `200`
- **2023-10-04** `c63802bd8a38` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/liara-cloud/apis/liara-mail-api-documentaion/changes/api/v1/mails/:mailServerID/patch.md)

---

[API](https://skmtc.dev/liara-cloud/apis/liara-mail-api-documentaion.md) · [All operations](https://skmtc.dev/liara-cloud/apis/liara-mail-api-documentaion/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/liara-cloud/liara-mail-api-documentaion/revisions/5ae39ee353b2/schema)
