---
title: "Create a new department"
method: POST
path: "/v1/partner/customers/{customerId}/departments"
tags: ["Customer Departments"]
---

# Create a new department

`POST /v1/partner/customers/{customerId}/departments`

## Request

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

Create a new department for the authenticated company.

Returns 201 with the full DepartmentItem on success.

## Path parameters

- `customerId` string, uuid, required

## Request body

- V1DepartmentsPostRequest
  - `code` string, nullable: Department code (optional)
  - `name` string, required: Department name (required)
  - `description` string, nullable: Department description (optional)

## Response `201`

Department created 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)
