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

# Add a department member

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

## Request

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

Adds an existing organization member to the department, identified by `username`, with role `ADMIN` or `MEMBER`. Requires department admin (or org `ADMIN`). The target must already belong to the organization. Records an audit entry.

## Path parameters

- `slug` string, required
- `deptSlug` 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
  - `user` object
    - `id` string
    - `username` string
    - `avatarUrl` string, nullable
  - `role` 'ADMIN' | 'MEMBER'
  - `joinedAt` 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)
