---
title: "addBucket"
method: POST
path: "/v1/group/{groupId}/bucket/{bucketId}"
tags: ["Groups"]
---

# addBucket

`POST /v1/group/{groupId}/bucket/{bucketId}`

Add an existing bucket to an existing group. Buckets and groups can be associated many to many.

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
- `bucketId` integer, required

## Response `200`

Successful update of group

- MessageResponse
  - `message` string

## Other responses

- `400` — Invalid path 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/revisions/1c1a5c17f52f/schema)
