---
title: "Set Cluster Dns Credential"
method: PUT
path: "/clusters/{cluster_id}/dns-credential"
tags: ["clusters"]
---

# Set Cluster Dns Credential

`PUT /clusters/{cluster_id}/dns-credential`

## Request

- Base URL: `https://api.mengi.cloud` (the document declares no server; this is the origin it was published from)
- URL: `https://api.mengi.cloud/clusters/{cluster_id}/dns-credential`
- Auth: none declared

Attach a DNS credential to a cluster (or detach with a null id) so the
per-cluster external-dns manages that credential's domain (BYOC DNS, Phase 3).

## Path parameters

- `cluster_id` string, uuid, required

## Request body

- SetClusterDNSCredential
  - `dns_credential_id` string, uuid, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/mengi/apis/mengi-cloud.md) · [All operations](https://skmtc.dev/mengi/apis/mengi-cloud/llms.txt) · [OpenAPI document](https://skmtc.dev/mengi/apis/mengi-cloud/revisions/4ae9b375cdbb?raw)
