---
title: "update"
method: PUT
path: "/v1/group/{groupId}"
tags: ["Groups"]
---

# update

`PUT /v1/group/{groupId}`

Rename a group

Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.

## Path parameters

- `groupId` integer, required

## Request body

- GroupUpdateRequest
  - `newName` string, required — The new name of the group being renamed.

## Response `200`

Successful update of group

- GroupResponse
  - `group` GroupDetail, required
    - `buckets` BucketDetail[] — The content buckets associated with the group
      - `bucketId` integer, required
      - `created` string, date-time — The data time when the bucket was created, in RFC3339 format
      - `fileCount` integer — The number of files contained in the content bucket
      - `fileSize` string — The total file size of files contained in the content bucket
      - `name` string
      - `updated` string, date-time — The data time when the bucket was last updated, in RFC3339 format
    - `created` string, date-time — The data time when the group was created, in RFC3339 format
    - `fileCount` integer — The number of files contained in the content buckets associated with the group
    - `fileSize` string — The total file size of files contained in the content buckets associated with the group
    - `groupId` integer, required
    - `name` string
    - `updated` string, date-time — The data time when the group was last updated, in RFC3339 format

## Other responses

- `400` — Invalid body parameter
- `401` — Unauthorized to update group with given ID

---

[API](https://skmtc.net/groundxai/apis/groundx-apis.md) · [All operations](https://skmtc.net/groundxai/apis/groundx-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/groundxai/groundx-apis/versions/1c1a5c17f52f/schema)
