---
title: "Transfer tasks to department."
method: POST
path: "/tasks/v1/transferToDepartment"
tags: ["tasksService"]
---

# Transfer tasks to department.

`POST /tasks/v1/transferToDepartment`

Transfer tasks to department.

## Request body

- TransferTasksToDepartment
  - `oldUserId` string, required
  - `departmentUserIds` string[]
  - `owner` boolean
  - `responsible` boolean

## Response `200`

OK

- TransferTasksSuccess
  - `status` boolean
  - `countOwnerTasks` integer
  - `countResponsibleTasks` integer

## Other responses

- `401` — Access token is missing or invalid

---

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