---
title: "Add Chunk to Group"
method: POST
path: "/api/chunk_group/chunk/{group_id}"
tags: ["Chunk Group"]
---

# Add Chunk to Group

`POST /api/chunk_group/chunk/{group_id}`

Route to add a chunk to a group. One of chunk_id or chunk_tracking_id must be provided. Auth'ed user or api key must have an admin or owner role for the specified dataset's organization.

## Path parameters

- `group_id` string, uuid, required

## Headers

- `TR-Dataset` string, uuid, required

## Request body

- AddChunkToGroupReqPayload
  - `chunk_id` string, uuid, nullable — Id of the chunk to make a member of the group.
  - `chunk_tracking_id` string, nullable — Tracking Id of the chunk to make a member of the group.

## Response `204`

Confirmation that the chunk was added to the group (bookmark'ed).

## Other responses

- `400` — Service error relating to getting the groups that the chunk is in.

---

[API](https://skmtc.net/devflowinc/apis/trieve-api.md) · [All operations](https://skmtc.net/devflowinc/apis/trieve-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/devflowinc/trieve-api/versions/84583e7c9fc1/schema)
