---
title: "Update department users by id."
method: PATCH
path: "/company/v1/departments/{departmentId}/addUsers"
tags: ["departments (usersService)"]
---

# Update department users by id.

`PATCH /company/v1/departments/{departmentId}/addUsers`

Update department users by id.

## Path parameters

- `departmentId` string, required

## Request body

- string[]

## Response `200`

OK

- Department
  - `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-2.md) · [All operations](https://skmtc.net/uspacy/apis/uspacy-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/uspacy/uspacy-api-2/versions/c3f48fd1c26b/schema)
