---
title: "Create department."
method: POST
path: "/company/v1/departments"
tags: ["departments (usersService)"]
---

# Create department.

`POST /company/v1/departments`

Create department.

## Request body

- DepartmentPatch
  - `name` string
  - `headId` string
  - `description` string
  - `parentDepartmentId` string

## Response `201`

OK

- object
  - `id` integer
  - `description` string
  - `name` string
  - `headId` string
  - `parentDepartmentId` string
  - `usersIds` string
  - `roles` string[]

## Other responses

- `401` — Access token is missing or invalid
- `403` — Forbidden

---

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