---
title: "Создать чат"
method: POST
path: "/api-v2/group-chats"
tags: ["Групповые чаты"]
---

# Создать чат

`POST /api-v2/group-chats`

## Request

- Base URL: `https://api-docs.yougile.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api-docs.yougile.com/api-v2/group-chats`
- Auth: HTTP bearer

## Request body

- CreateGroupChatDto
  - `title` string, required: Название чата
  - `users` object, required: Сотрудники в чате. При изменении чата список заменяется целиком: сотрудники, которых в нём нет, исключаются из чата
  - `userRoleMap` object, required: Роли сотрудников в чате
  - `roleConfigMap` object, required: Настройки ролей

## Response `201`

- WithIdDto
  - `id` string, required: ID объекта

---

[API](https://skmtc.dev/yougile/apis/yougile-rest-api-v2-0.md) - [All operations](https://skmtc.dev/yougile/apis/yougile-rest-api-v2-0/llms.txt) - [OpenAPI document](https://skmtc.dev/yougile/apis/yougile-rest-api-v2-0/revisions/9452cba35716?raw)
