Update cluster
curl --request PUT \
--url https://nks.nks.europe-west4.nscale.com/api/v1/clusters/{clusterID} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"metadata": {
"name": "production-cluster"
},
"spec": {
"networkId": "61f0ad85-3001-41cb-824a-e6a047668dfe",
"platformReleaseId": "nks-1-32-4",
"clusterNetwork": {
"podCidr": "10.240.0.0/12",
"serviceCidr": "10.96.0.0/16"
},
"apiServer": {
"publicIP": true,
"allowedCidrs": [
"203.0.113.0/24"
]
}
}
}
'import requests
url = "https://nks.nks.europe-west4.nscale.com/api/v1/clusters/{clusterID}"
payload = {
"metadata": { "name": "production-cluster" },
"spec": {
"networkId": "61f0ad85-3001-41cb-824a-e6a047668dfe",
"platformReleaseId": "nks-1-32-4",
"clusterNetwork": {
"podCidr": "10.240.0.0/12",
"serviceCidr": "10.96.0.0/16"
},
"apiServer": {
"publicIP": True,
"allowedCidrs": ["203.0.113.0/24"]
}
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
metadata: {name: 'production-cluster'},
spec: {
networkId: '61f0ad85-3001-41cb-824a-e6a047668dfe',
platformReleaseId: 'nks-1-32-4',
clusterNetwork: {podCidr: '10.240.0.0/12', serviceCidr: '10.96.0.0/16'},
apiServer: {publicIP: true, allowedCidrs: ['203.0.113.0/24']}
}
})
};
fetch('https://nks.nks.europe-west4.nscale.com/api/v1/clusters/{clusterID}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://nks.nks.europe-west4.nscale.com/api/v1/clusters/{clusterID}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'metadata' => [
'name' => 'production-cluster'
],
'spec' => [
'networkId' => '61f0ad85-3001-41cb-824a-e6a047668dfe',
'platformReleaseId' => 'nks-1-32-4',
'clusterNetwork' => [
'podCidr' => '10.240.0.0/12',
'serviceCidr' => '10.96.0.0/16'
],
'apiServer' => [
'publicIP' => true,
'allowedCidrs' => [
'203.0.113.0/24'
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://nks.nks.europe-west4.nscale.com/api/v1/clusters/{clusterID}"
payload := strings.NewReader("{\n \"metadata\": {\n \"name\": \"production-cluster\"\n },\n \"spec\": {\n \"networkId\": \"61f0ad85-3001-41cb-824a-e6a047668dfe\",\n \"platformReleaseId\": \"nks-1-32-4\",\n \"clusterNetwork\": {\n \"podCidr\": \"10.240.0.0/12\",\n \"serviceCidr\": \"10.96.0.0/16\"\n },\n \"apiServer\": {\n \"publicIP\": true,\n \"allowedCidrs\": [\n \"203.0.113.0/24\"\n ]\n }\n }\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://nks.nks.europe-west4.nscale.com/api/v1/clusters/{clusterID}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"metadata\": {\n \"name\": \"production-cluster\"\n },\n \"spec\": {\n \"networkId\": \"61f0ad85-3001-41cb-824a-e6a047668dfe\",\n \"platformReleaseId\": \"nks-1-32-4\",\n \"clusterNetwork\": {\n \"podCidr\": \"10.240.0.0/12\",\n \"serviceCidr\": \"10.96.0.0/16\"\n },\n \"apiServer\": {\n \"publicIP\": true,\n \"allowedCidrs\": [\n \"203.0.113.0/24\"\n ]\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://nks.nks.europe-west4.nscale.com/api/v1/clusters/{clusterID}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"metadata\": {\n \"name\": \"production-cluster\"\n },\n \"spec\": {\n \"networkId\": \"61f0ad85-3001-41cb-824a-e6a047668dfe\",\n \"platformReleaseId\": \"nks-1-32-4\",\n \"clusterNetwork\": {\n \"podCidr\": \"10.240.0.0/12\",\n \"serviceCidr\": \"10.96.0.0/16\"\n },\n \"apiServer\": {\n \"publicIP\": true,\n \"allowedCidrs\": [\n \"203.0.113.0/24\"\n ]\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"metadata": {
"id": "1e44f19a-21a9-43cc-a460-5d6f21247f65",
"generation": 4,
"name": "production-cluster",
"organizationId": "9a8c6370-4065-4d4a-9da0-7678df40cd9d",
"projectId": "e36c058a-8eba-4f5b-91f4-f6ffb983795c",
"creationTime": "2026-05-14T10:00:00.000Z",
"provisioningStatus": "provisioning",
"healthStatus": "unknown",
"tags": [
{
"name": "environment",
"value": "production"
}
]
},
"spec": {
"networkId": "61f0ad85-3001-41cb-824a-e6a047668dfe",
"platformReleaseId": "nks-1-32-4",
"apiServer": {
"publicIP": false
},
"addons": {
"hardware": {
"enabled": true
},
"nodeHealth": {
"enabled": true
}
}
},
"status": {
"regionId": "uk-lon-1",
"observedGeneration": 3,
"kubernetesVersion": {
"target": "v1.32.3",
"observed": "v1.32.3"
},
"apiServer": {
"certificateAuthorityData": "dGVzdC1jYQ==",
"endpoints": {
"private": {
"address": "api.production-cluster.private.example.com",
"port": 6443
}
}
},
"controlPlane": {
"readyReplicas": 3,
"desiredReplicas": 3
},
"nodePools": {
"count": 1,
"totalDesiredReplicas": 3,
"totalCurrentReplicas": 3,
"totalReadyReplicas": 3
},
"addons": {
"core": {
"status": "ready",
"components": [
{
"name": "cilium",
"version": "1.16.6",
"status": "ready"
},
{
"name": "metrics-server",
"version": "0.7.2",
"status": "ready"
}
]
},
"hardware": {
"status": "ready",
"components": [
{
"name": "nvidia-gpu-operator",
"version": "24.9.2",
"status": "ready"
}
]
}
},
"release": {
"appliedId": "nks-1-32-3",
"deprecated": false,
"upgradeAvailable": true,
"eligibleTargets": [
"nks-1-32-4"
]
}
}
}{
"error": "invalid_request",
"error_description": "request body invalid",
"trace_id": "57bc14d9bd461f0b5a72db830149b67a"
}{
"error": "access_denied",
"error_description": "authentication failed",
"trace_id": "57bc14d9bd461f0b5a72db830149b67a"
}{
"error": "forbidden",
"error_description": "user credentials do not have the required privileges",
"trace_id": "57bc14d9bd461f0b5a72db830149b67a"
}{
"error": "not_found",
"error_description": "the requested resource does not exist",
"trace_id": "57bc14d9bd461f0b5a72db830149b67a"
}{
"error": "conflict",
"error_description": "a resource with the same name already exists",
"trace_id": "57bc14d9bd461f0b5a72db830149b67a"
}{
"error": "request_entity_too_large",
"error_description": "request body exceeds the maximum allowed size",
"trace_id": "57bc14d9bd461f0b5a72db830149b67a"
}{
"error": "unprocessable_content",
"error_description": "the request body was in the wrong format",
"trace_id": "57bc14d9bd461f0b5a72db830149b67a"
}{
"error": "server_error",
"error_description": "failed to token claim",
"trace_id": "57bc14d9bd461f0b5a72db830149b67a"
}Clusters
Update cluster
Update a cluster.
PUT
/
api
/
v1
/
clusters
/
{clusterID}
Update cluster
curl --request PUT \
--url https://nks.nks.europe-west4.nscale.com/api/v1/clusters/{clusterID} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"metadata": {
"name": "production-cluster"
},
"spec": {
"networkId": "61f0ad85-3001-41cb-824a-e6a047668dfe",
"platformReleaseId": "nks-1-32-4",
"clusterNetwork": {
"podCidr": "10.240.0.0/12",
"serviceCidr": "10.96.0.0/16"
},
"apiServer": {
"publicIP": true,
"allowedCidrs": [
"203.0.113.0/24"
]
}
}
}
'import requests
url = "https://nks.nks.europe-west4.nscale.com/api/v1/clusters/{clusterID}"
payload = {
"metadata": { "name": "production-cluster" },
"spec": {
"networkId": "61f0ad85-3001-41cb-824a-e6a047668dfe",
"platformReleaseId": "nks-1-32-4",
"clusterNetwork": {
"podCidr": "10.240.0.0/12",
"serviceCidr": "10.96.0.0/16"
},
"apiServer": {
"publicIP": True,
"allowedCidrs": ["203.0.113.0/24"]
}
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
metadata: {name: 'production-cluster'},
spec: {
networkId: '61f0ad85-3001-41cb-824a-e6a047668dfe',
platformReleaseId: 'nks-1-32-4',
clusterNetwork: {podCidr: '10.240.0.0/12', serviceCidr: '10.96.0.0/16'},
apiServer: {publicIP: true, allowedCidrs: ['203.0.113.0/24']}
}
})
};
fetch('https://nks.nks.europe-west4.nscale.com/api/v1/clusters/{clusterID}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://nks.nks.europe-west4.nscale.com/api/v1/clusters/{clusterID}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'metadata' => [
'name' => 'production-cluster'
],
'spec' => [
'networkId' => '61f0ad85-3001-41cb-824a-e6a047668dfe',
'platformReleaseId' => 'nks-1-32-4',
'clusterNetwork' => [
'podCidr' => '10.240.0.0/12',
'serviceCidr' => '10.96.0.0/16'
],
'apiServer' => [
'publicIP' => true,
'allowedCidrs' => [
'203.0.113.0/24'
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://nks.nks.europe-west4.nscale.com/api/v1/clusters/{clusterID}"
payload := strings.NewReader("{\n \"metadata\": {\n \"name\": \"production-cluster\"\n },\n \"spec\": {\n \"networkId\": \"61f0ad85-3001-41cb-824a-e6a047668dfe\",\n \"platformReleaseId\": \"nks-1-32-4\",\n \"clusterNetwork\": {\n \"podCidr\": \"10.240.0.0/12\",\n \"serviceCidr\": \"10.96.0.0/16\"\n },\n \"apiServer\": {\n \"publicIP\": true,\n \"allowedCidrs\": [\n \"203.0.113.0/24\"\n ]\n }\n }\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://nks.nks.europe-west4.nscale.com/api/v1/clusters/{clusterID}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"metadata\": {\n \"name\": \"production-cluster\"\n },\n \"spec\": {\n \"networkId\": \"61f0ad85-3001-41cb-824a-e6a047668dfe\",\n \"platformReleaseId\": \"nks-1-32-4\",\n \"clusterNetwork\": {\n \"podCidr\": \"10.240.0.0/12\",\n \"serviceCidr\": \"10.96.0.0/16\"\n },\n \"apiServer\": {\n \"publicIP\": true,\n \"allowedCidrs\": [\n \"203.0.113.0/24\"\n ]\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://nks.nks.europe-west4.nscale.com/api/v1/clusters/{clusterID}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"metadata\": {\n \"name\": \"production-cluster\"\n },\n \"spec\": {\n \"networkId\": \"61f0ad85-3001-41cb-824a-e6a047668dfe\",\n \"platformReleaseId\": \"nks-1-32-4\",\n \"clusterNetwork\": {\n \"podCidr\": \"10.240.0.0/12\",\n \"serviceCidr\": \"10.96.0.0/16\"\n },\n \"apiServer\": {\n \"publicIP\": true,\n \"allowedCidrs\": [\n \"203.0.113.0/24\"\n ]\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"metadata": {
"id": "1e44f19a-21a9-43cc-a460-5d6f21247f65",
"generation": 4,
"name": "production-cluster",
"organizationId": "9a8c6370-4065-4d4a-9da0-7678df40cd9d",
"projectId": "e36c058a-8eba-4f5b-91f4-f6ffb983795c",
"creationTime": "2026-05-14T10:00:00.000Z",
"provisioningStatus": "provisioning",
"healthStatus": "unknown",
"tags": [
{
"name": "environment",
"value": "production"
}
]
},
"spec": {
"networkId": "61f0ad85-3001-41cb-824a-e6a047668dfe",
"platformReleaseId": "nks-1-32-4",
"apiServer": {
"publicIP": false
},
"addons": {
"hardware": {
"enabled": true
},
"nodeHealth": {
"enabled": true
}
}
},
"status": {
"regionId": "uk-lon-1",
"observedGeneration": 3,
"kubernetesVersion": {
"target": "v1.32.3",
"observed": "v1.32.3"
},
"apiServer": {
"certificateAuthorityData": "dGVzdC1jYQ==",
"endpoints": {
"private": {
"address": "api.production-cluster.private.example.com",
"port": 6443
}
}
},
"controlPlane": {
"readyReplicas": 3,
"desiredReplicas": 3
},
"nodePools": {
"count": 1,
"totalDesiredReplicas": 3,
"totalCurrentReplicas": 3,
"totalReadyReplicas": 3
},
"addons": {
"core": {
"status": "ready",
"components": [
{
"name": "cilium",
"version": "1.16.6",
"status": "ready"
},
{
"name": "metrics-server",
"version": "0.7.2",
"status": "ready"
}
]
},
"hardware": {
"status": "ready",
"components": [
{
"name": "nvidia-gpu-operator",
"version": "24.9.2",
"status": "ready"
}
]
}
},
"release": {
"appliedId": "nks-1-32-3",
"deprecated": false,
"upgradeAvailable": true,
"eligibleTargets": [
"nks-1-32-4"
]
}
}
}{
"error": "invalid_request",
"error_description": "request body invalid",
"trace_id": "57bc14d9bd461f0b5a72db830149b67a"
}{
"error": "access_denied",
"error_description": "authentication failed",
"trace_id": "57bc14d9bd461f0b5a72db830149b67a"
}{
"error": "forbidden",
"error_description": "user credentials do not have the required privileges",
"trace_id": "57bc14d9bd461f0b5a72db830149b67a"
}{
"error": "not_found",
"error_description": "the requested resource does not exist",
"trace_id": "57bc14d9bd461f0b5a72db830149b67a"
}{
"error": "conflict",
"error_description": "a resource with the same name already exists",
"trace_id": "57bc14d9bd461f0b5a72db830149b67a"
}{
"error": "request_entity_too_large",
"error_description": "request body exceeds the maximum allowed size",
"trace_id": "57bc14d9bd461f0b5a72db830149b67a"
}{
"error": "unprocessable_content",
"error_description": "the request body was in the wrong format",
"trace_id": "57bc14d9bd461f0b5a72db830149b67a"
}{
"error": "server_error",
"error_description": "failed to token claim",
"trace_id": "57bc14d9bd461f0b5a72db830149b67a"
}Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Path Parameters
Opaque public cluster ID. Opaque public resource ID.
Required string length:
1 - 128Body
application/json
Cluster update request.
Response
A cluster. The example shows a newly accepted release update before its generation has converged.
Was this page helpful?