---
title: "Update a department"
method: PATCH
path: "/v1/partner/customers/{customerId}/departments/{departmentId}"
tags: ["Customer Departments"]
---

# Update a department

`PATCH /v1/partner/customers/{customerId}/departments/{departmentId}`

## Request

- Base URL: `https://api.usemultiplier.com`
- URL: `https://api.usemultiplier.com/v1/partner/customers/{customerId}/departments/{departmentId}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/usemultiplier/apis/multiplier-public-rest-api/docs/v1/partner/customers/:customerId/departments/:departmentId/patch.ts> (a function with typed inputs; its response is checked against the schema)

Partially update a department by its ID.

Only supplied fields are updated. If field is not provided, the existing value is preserved.

Returns `200` with the full `DepartmentItem` on success.

## Path parameters

- `customerId` string, uuid, required
- `departmentId` string, uuid, required

## Request body

- V1DepartmentsPatchRequest
  - `name` string, nullable: Department name. If omitted, existing name is preserved.
  - `code` string, nullable: Department code. If omitted, existing code is preserved.
  - `description` string, nullable: Department description. If omitted, existing description is preserved.

## Response `200`

Department updated successfully

- DepartmentItem
  - `id` string, uuid: Department ID (UUID).
  - `code` string, nullable: Department code
  - `name` string: Department name
  - `description` string, nullable: Department description
  - `createdAt` string, date-time: Timestamp when the department was created (ISO 8601)

## Other responses

- `401`: Authentication required
- `403`: Forbidden - insufficient permissions
- `404`: Resource not found
- `422`: Unprocessable entity - validation error
- `500`: Internal server error
- `503`: Service unavailable - upstream dependency error

---

[API](https://skmtc.dev/usemultiplier/apis/multiplier-public-rest-api.md) - [All operations](https://skmtc.dev/usemultiplier/apis/multiplier-public-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/usemultiplier/apis/multiplier-public-rest-api/revisions/da31bb6ec00d?raw)
