---
title: "Update Cluster Kubeconfig"
method: PATCH
path: "/internal/clusters/{cluster_id}/kubeconfig"
tags: ["internal"]
---

# Update Cluster Kubeconfig

`PATCH /internal/clusters/{cluster_id}/kubeconfig`

## 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/internal/clusters/{cluster_id}/kubeconfig`
- Auth: none declared. Required headers: `x-service-token`

Update cluster dashboard kubeconfig (internal).

This updates the read-only kubeconfig used for dashboard metrics and status.
The admin_kubeconfig is preserved separately for admin operations.

Used to replace expiring tokens with long-lived service account tokens.

## Path parameters

- `cluster_id` string, uuid, required

## Headers

- `x-service-token` string, required

## Request body

- ClusterKubeconfigUpdate
  - `kubeconfig` string, required

## 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)
