---
title: "Update a group"
method: PATCH
path: "/v1/groups/{group_id}"
tags: ["Groups"]
---

# Update a group

`PATCH /v1/groups/{group_id}`

## Request

- Base URL: `https://api.capacity.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.capacity.com/v1/groups/{group_id}`
- Auth: one of:
  - API key in header `x-capacity-id`
  - HTTP bearer

Update a group

## Path parameters

- `group_id` string, required

## Request body

- object
  - `name` string, required: The name of the new group

## Response `200`

The updated group

- object
  - `body` object: Json body data in the request
  - `parameters` object: Query parameters in the request
  - `result` GroupGetSchema
    - `id` string: ID of a group record
    - `name` string: The group's name

## Other responses

- `400`: The request contains malformed data or violates data integrity
- `404`: The requested resource could not be found

---

[API](https://skmtc.dev/capacity/apis/capacity-api-docs.md) - [All operations](https://skmtc.dev/capacity/apis/capacity-api-docs/llms.txt) - [OpenAPI document](https://skmtc.dev/capacity/apis/capacity-api-docs/revisions/74c85bb61004?raw)
