v1

latestOpenAPI 3.1.02026-07-14159142161.9 KB
departments (usersService)

Delete users from department

Delete users from department by ids.

patch/company/v1/departments/{departmentId}/deleteUsers

Path parameters

departmentIdstring required

Department id

Request body

string[] required

Example request

[
  "1",
  "2"
]

Response

OK

idinteger
descriptionstring
namestring
headIdstring
parentDepartmentIdstring
usersIdsstring
rolesstring[]

Example response

{
  "id": 1,
  "description": "Test department",
  "name": "Frontend department",
  "roles": [
    "OWNER",
    "Employee",
    "ADMIN"
  ]
}