---
title: "Update Cluster"
method: PUT
path: "/ocean/gcp/k8s/cluster/{oceanClusterId}"
tags: ["Ocean GKE"]
---

# Update Cluster

`PUT /ocean/gcp/k8s/cluster/{oceanClusterId}`

## Request

- Base URL: `https://api.spotinst.io`
- URL: `https://api.spotinst.io/ocean/gcp/k8s/cluster/{oceanClusterId}`
- Auth: HTTP bearer

All Ocean parameters are updatable, excluding the Name and controllerClusterId. <br /> This API supports partial updates, so specific fields can be updated separately.

## Parameters

- `#/paths/~1ocean~1aws~1k8s~1cluster~1%7BoceanClusterId%7D/get/parameters/1` (unresolved $ref)
- `#/paths/~1azure~1costs/get/parameters/0` (unresolved $ref)

## Request body

- object
  - `cluster` object, required: The specification of the Ocean cluster.
    - `id` string: Ocean cluster identifier.
    - `name` string: Add a name for the Ocean cluster.
    - `autoScaler` AutoScaler (unresolved $ref)
    - `autoUpdate` AutoUpdate (unresolved $ref)
    - `capacity` Capacity (unresolved $ref)
    - `strategy` Strategy (unresolved $ref)
    - `scheduling` Scheduling (unresolved $ref)
    - `security` Security (unresolved $ref)
    - `compute` Compute (unresolved $ref)
    - `createdAt` string, date-time: A timestamp of the Ocean creation.
    - `updatedAt` string, date-time: A timestamp of the latest Ocean update.

## Other responses

- `400`: Bad Request

---

[API](https://skmtc.dev/spot/apis/spot-by-flexera-api.md) - [All operations](https://skmtc.dev/spot/apis/spot-by-flexera-api/llms.txt) - [OpenAPI document](https://skmtc.dev/spot/apis/spot-by-flexera-api/revisions/f7e206fa6474?raw)
