---
title: "Update kubeconfig"
method: PUT
path: "/kapis/cluster.kubesphere.io/v1alpha1/clusters/{cluster}/kubeconfig"
tags: ["Multi-cluster"]
---

# Update kubeconfig

`PUT /kapis/cluster.kubesphere.io/v1alpha1/clusters/{cluster}/kubeconfig`

## Request

- The document declares no server URL.
- Auth: API key in header `Authorization`

## Path parameters

- `cluster` string, required

## Response `200`

ok

## Changes

- **2022-02-16** `ffb3c81d8ce3`: 1 info
  - endpoint added
- **2019-09-02** `6d6e730a2d14`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/kubesphere/apis/ks-api/changes/kapis/cluster.kubesphere.io/v1alpha1/clusters/:cluster/kubeconfig/put.md)

---

[API](https://skmtc.dev/kubesphere/apis/ks-api.md) - [All operations](https://skmtc.dev/kubesphere/apis/ks-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kubesphere/apis/ks-api/revisions/0451c8cec9b1?raw)
