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

# revoke credentials to connect mail server with SMTP

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

## Path parameters

- `mailServerID` string, required

## Request body

- Model9
  - `username` string, required

## Response `200`

OK

- CreateSMTP
  - `status` string
  - `data` object
    - `username` string
    - `passowrd` string

## Other responses

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

## Changes

- **2023-10-06** `6ba885651c6f` — 2 breaking, 2 info
  - removed the media type `*/*` from the request body
  - removed the media type `*/*` for the response with the status `200`
  - 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/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/5ae39ee353b2/schema)
