---
title: "Create a department"
method: POST
path: "/api/v1/orgs/{slug}/departments"
tags: ["Org Hierarchy"]
---

# Create a department

`POST /api/v1/orgs/{slug}/departments`

## Request

- Base URL: `https://api.skills-hub.ai`
- URL: `https://api.skills-hub.ai/api/v1/orgs/{slug}/departments`
- Auth: one of:
  - HTTP bearer
  - API key in header `Authorization`

Creates a department in the organization. Requires org role `ADMIN`. Enforces the per-org department limit and a unique department slug. Records an audit entry.

## Path parameters

- `slug` string, required

## Response `200`

Successful response. The returned fields are described in this endpoint's summary/description; typed per-field response schemas are being added incrementally.

- object
  - `id` string
  - `slug` string
  - `name` string
  - `description` string, nullable
  - `memberCount` integer
  - `skillCount` integer
  - `myRole` 'ADMIN' | 'MEMBER' | 'null', nullable
  - `teams` object[]
  - `createdAt` string, date-time

---

[API](https://skmtc.dev/skills-hub/apis/skills-hub-ai-api.md) · [All operations](https://skmtc.dev/skills-hub/apis/skills-hub-ai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/skills-hub/apis/skills-hub-ai-api/revisions/cb5d46d80300?raw)
