---
title: "Creates a new dataset group."
method: POST
path: "/dataset/{datasetId}/group"
tags: ["DatasetGroup"]
---

# Creates a new dataset group.

`POST /dataset/{datasetId}/group`

## Path parameters

- `datasetId` string, required

## Request body

- CreateDatasetGroupEndpointInput
  - `group` string, required — The name of the group.
  - `context` string, nullable — The optional text context for the group.
  - `contextAsset` union
    - object
      - `_t` 'ExistingAssetInput', required
      - `name` string, required
      - `metadata` object, nullable
      - `identifier` string, nullable
    - object
      - `_t` 'MultiAssetInput', required
      - `assets` IAssetInput[], required
      - `metadata` object, nullable
      - `identifier` string, nullable
    - object
      - `_t` 'TextAssetInput', required
      - `text` string, required
      - `metadata` object, nullable
      - `identifier` string, nullable

## Response `204`

No Content

## Other responses

- `400` — Bad Request
- `401` — Unauthenticated
- `403` — Forbidden

---

[API](https://skmtc.net/rapidata/apis/rapidata-api.md) · [All operations](https://skmtc.net/rapidata/apis/rapidata-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/rapidata/rapidata-api/revisions/e42ec51c7b88/schema)
