Skip to main content
POST

Authentication

This endpoint requires authentication with a Bearer token. Only users with Super Admin or HR Manager roles can create departments.
string
required
The unique identifier of the company

Request Body

string
required
Department name (2-255 characters)
string
Department code (max 50 characters)
string
Department description
string
UUID of the parent department for hierarchical structure
string
Cost center identifier (max 100 characters)
string
required
Department status. Must be one of: active, inactive

Response

boolean
Indicates if the request was successful
object
The created department object