---
title: "Create new document group"
method: POST
path: "/v1/knowledge-models/{knowledge_model_id}/document-groups"
---

# Create new document group

`POST /v1/knowledge-models/{knowledge_model_id}/document-groups`

Create new document group and return it.

## Path parameters

- `knowledge_model_id` string, required

## Request body

- DocumentGroupCreate
  - `title` string, required — Title of the document group
  - `description` string, required — Description of the document group

## Response `200`

Successful Response

- DocumentGroupSchema
  - `id` string, required
  - `title` string, required
  - `description` string, required
  - `knowledge_model_id` string, required
  - `document_ids` string[], required

## Other responses

- `401` — User token is not present in cookies or has incorrect value.
- `421` — Various errors, see examples
- `422` — Validation Error

---

[API](https://skmtc.dev/constructor-tech/apis/constructorknowledgemodel.md) · [All operations](https://skmtc.dev/constructor-tech/apis/constructorknowledgemodel/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/constructor-tech/constructorknowledgemodel/revisions/989f1fae00de/schema)
