---
title: "Update a cluster's groups"
method: PUT
path: "/clusters/{clusterId}/groups"
tags: ["Clusters"]
---

# Update a cluster's groups

`PUT /clusters/{clusterId}/groups`

## Request

- Base URL: `/management/v2/environments/DEFAULT` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/management/v2/environments/DEFAULT/clusters/{clusterId}/groups`
- Auth: one of:
  - HTTP basic
  - API key in cookie `Auth-Graviteeio-APIM`

User must have the CLUSTER_DEFINITION[UPDATE] permission.

## Request body

- string[]

## Response `200`

Cluster groups updated

- string[]

## Other responses

- `default`: Generic error response

---

[API](https://skmtc.dev/gravitee-io/apis/gravitee-io-apim-management-api-environments.md) - [All operations](https://skmtc.dev/gravitee-io/apis/gravitee-io-apim-management-api-environments/llms.txt) - [OpenAPI document](https://skmtc.dev/gravitee-io/apis/gravitee-io-apim-management-api-environments/revisions/b736a7e375df?raw)
