---
title: "Пригласить в компанию"
method: POST
path: "/api-v2/users"
tags: ["Сотрудники"]
---

# Пригласить в компанию

`POST /api-v2/users`

## 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/users`
- Auth: HTTP bearer

## Request body

- CreateUserDto
  - `email` string, required: Почтовый ящик сотрудника
  - `isAdmin` boolean: Имеет ли пользователь права администратора
  - `messengerOnly` boolean: Есть ли у пользователя доступ только к мессенджеру

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