---
title: "Rotate Dkim"
method: POST
path: "/1/mail_hostings/{service_mail}/diagnostic/dkim/rotate"
tags: ["Service Mail > Diagnostic > Dkim"]
---

# Rotate Dkim

`POST /1/mail_hostings/{service_mail}/diagnostic/dkim/rotate`

Rotates the dkim key for the current service mail without deleting old keys from dns

## Path parameters

- `service_mail` integer, required

## Response `201`

Created

- object
  - `result` 'success' | 'error' | 'asynchronous', required — Result of the HTTP request
  - `data` boolean

## Other responses

- `400` — Bad Request
- `412` — Precondition Failed
- `424` — Response

---

[API](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools.md) · [All operations](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/infomaniak/api-reference-developer-tools/revisions/1c59d729611a/schema)
