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

# Update

`PATCH /groups/{group_id}`

## Request

- Base URL: `https://api.mirurobotics.com/beta`
- URL: `https://api.mirurobotics.com/beta/groups/{group_id}`
- Auth: API key in header `X-API-Key`

Update a group.

## Path parameters

- `group_id` string, required

## Query parameters

- `expand` GroupExpansion[]

## Request body

- UpdateGroupRequest
  - `name` string: The updated name of the group.

## Response `200`

Successfully updated the group.

- Group
  - `object` 'group', required: The object type, which is always `group`.
  - `id` string, required: ID of the group.
  - `name` string, required: Name of the group.
  - `parent_id` string, nullable, required: ID of the parent group. Null for top-level groups.
  - `created_at` string, date-time, required: Timestamp of when the group was created.
  - `updated_at` string, date-time, required: Timestamp of when the group was last updated.
  - `parent` Group (recursive)

---

[API](https://skmtc.dev/mirurobotics/apis/miru-platform-api.md) - [All operations](https://skmtc.dev/mirurobotics/apis/miru-platform-api/llms.txt) - [OpenAPI document](https://skmtc.dev/mirurobotics/apis/miru-platform-api/revisions/80ee5be70cc3?raw)
