---
title: "Update department"
method: PATCH
path: "/shipping/orders/update_department/v1/{order_id}"
tags: ["/shipping/orders"]
---

# Update department

`PATCH /shipping/orders/update_department/v1/{order_id}`

Updates department_id for the caller's role on the order. Coordinator writes coordinator_department_id; executor writes executor_department_id on matching task_group_details rows. | authz_personas=[coordinator_org_operators, order_executor_org_operators] | (OrdersUpdateDepartmentReq) -> (bool)

## Path parameters

- `order_id` string, required

## Request body

- OrdersUpdateDepartmentReq
  - `department_id` string, nullable
  - `department_id__set_to_None` boolean

## Response `200`

Successful Response

- boolean

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/chrt/apis/chrt-fastapi.md) · [All operations](https://skmtc.dev/chrt/apis/chrt-fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/chrt/chrt-fastapi/revisions/ea04e157edb3/schema)
