Skip to main content
POST
Create new department

Authorizations

Authorization
string
header
required

Token de sesión Better Auth para rutas de backoffice; las rutas de portal usan su token propio.

Body

application/json
name
string
required

Department name

Example:

"IT Department"

description
string

Department description

Example:

"Information Technology Department"

parent_id
string

Parent department ID (UUID)

Example:

"123e4567-e89b-12d3-a456-426614174000"

Response

Department created