---
title: "Update department on selected tasks"
method: PATCH
path: "/operations/operations_tasks/update_department_many/v1"
tags: ["/operations/operations_tasks"]
---

# Update department on selected tasks

`PATCH /operations/operations_tasks/update_department_many/v1`

Assigns or clears one department on selected tasks across orders. Missing and other-org tasks are skipped. | authz: min_org_role=operator | (OperationsTasksUpdateDepartmentManyReq) -> (OperationsTasksUpdateDepartmentManyRes)

## Request body

- OperationsTasksUpdateDepartmentManyReq
  - `operations_task_ids` string[], required
  - `department_id` string, nullable
  - `department_id__set_to_None` boolean

## Response `200`

Successful Response

- OperationsTasksUpdateDepartmentManyRes
  - `updated_count` integer, required — Matched tasks in the caller's org, including unchanged assignments; missing and other-org tasks are skipped.

## Other responses

- `422` — Validation Error

## Changes

- **2026-09-11** `7cf361125675` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/chrt/apis/chrt-fastapi/changes/operations/operations_tasks/update_department_many/v1/patch.md)

---

[API](https://skmtc.dev/chrt/apis/chrt-fastapi.md) · [All operations](https://skmtc.dev/chrt/apis/chrt-fastapi/llms.txt) · [OpenAPI document](https://skmtc.dev/chrt/apis/chrt-fastapi/revisions/1a1e5a995fc9?raw)
