---
title: "/departments"
method: POST
path: "/departments"
---

# /departments

`POST /departments`

Creates a department in your account. Required scope: `w_departments`. Accessible with all token types.

## Path parameters

- `subdomain` string, required

## Request body

- object
  - `name` string, required — The name of the new department
  - `parent_id` string — The department identifier of the parent department if it is a top level department

## Response `200`

200

- object
  - `id` string
  - `name` string
  - `parent_id` string
  - `sample` boolean

## Other responses

- `400` — 400
- `401` — 401
- `404` — 404
- `422` — 422

---

[API](https://skmtc.net/workable/apis/account-root.md) · [All operations](https://skmtc.net/workable/apis/account-root/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/workable/account-root/versions/3ead9ec42165/schema)
