---
title: "revoke credentials to connect mail server with SMTP"
method: PATCH
path: "/mails/{mailServerID}/smtp-credentials"
tags: ["smtp"]
---

# revoke credentials to connect mail server with SMTP

`PATCH /mails/{mailServerID}/smtp-credentials`

## Path parameters

- `mailServerID` string, required

## Response `200`

OK

## Other responses

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

## Changes

- **2023-09-25** `65d3ff4fe4a1` — 2 info
  - added optional request body
  - added the media type `*/*` for the response with the status `200`
- **2023-09-11** `8b662cd0b0e3` — 1 info
  - added the non-success response with the status `500`

[Change history](https://skmtc.dev/liara-cloud/apis/liara-mail-api-documentaion/changes/mails/:mailServerID/smtp-credentials/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/65d3ff4fe4a1/schema)
