---
title: "update"
method: PUT
path: "/v1/bucket/{bucketId}"
tags: ["Buckets"]
---

# update

`PUT /v1/bucket/{bucketId}`

Rename a bucket.

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

- `bucketId` integer, required

## Request body

- BucketUpdateRequest
  - `newName` string, required — The new name of the bucket being renamed.

## Response `200`

Bucket successfully updated

- BucketUpdateResponse
  - `bucket` BucketUpdateDetail, required
    - `bucketId` integer, required
    - `name` string

## Other responses

- `400` — Invalid body parameter
- `401` — Unauthorized to update bucket 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/revisions/1c1a5c17f52f/schema)
