---
title: "create"
method: POST
path: "/v1/group"
tags: ["Groups"]
---

# create

`POST /v1/group`

create a new group, a group being a collection of buckets which can be searched.

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.

## Request body

- GroupCreateRequest
  - `name` string, required — The name of the group being created.
  - `bucketName` string — Specify bucketName to automatically create a bucket, by the name specified, and add it to the created group.

## Response `200`

Group successfully created

- 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

---

[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)
