---
title: "Update an existing group"
method: PUT
path: "/groups/{id}"
tags: ["Groups"]
---

# Update an existing group

`PUT /groups/{id}`

Update an existing group in Cognito user pool

## Path parameters

- `id` string, required

## Request body

- object
  - `name` string, required
  - `precedence` integer

## Response `200`

The group has been successfully updated

- NewGroup — The new group details for the response body
  - `id` string — The unique ID of the group
  - `name` string — The human readable name of the group
  - `precedence` integer — The precedence of the group

## Other responses

- `400` — Request rejected due to invalid parameters supplied
- `401` — Authentication information is missing or invalid
- `404` — Group resource to be updated cannot be found
- `500` — Failed to process the request due to an internal error

---

[API](https://skmtc.net/office-of-national-statistics/apis/identity-api.md) · [All operations](https://skmtc.net/office-of-national-statistics/apis/identity-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/office-of-national-statistics/identity-api/revisions/6472459b6b03/schema)
