Skip to main content
PATCH
/
v1
/
clusters
/
{clusterId}
/
compute_settings
Update cluster compute settings
curl --request PATCH \
  --url https://api.cnap.tech/v1/clusters/{clusterId}/compute_settings \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "auto_scaling_enabled": true,
  "max_machines": 50
}
'
{
  "error": {
    "code": "not_found",
    "message": "Resource not found",
    "param": "name",
    "suggestion": "Run `cnap clusters list` to see available clusters",
    "details": "<unknown>"
  }
}

Authorizations

Authorization
string
header
required

Personal Access Token (cnap_pat_...) or OAuth2 JWT. Create tokens at https://cnap.tech/account/tokens

Path Parameters

clusterId
string
required

Cluster ID

Body

application/json
auto_scaling_enabled
boolean
max_machines
number
Required range: 0 <= x <= 100

Response

Settings updated