Departments API
The Departments API provides endpoints to retrieve department information within the organization.Endpoints
Get All Departments
Retrieves a list of all departments in the organization.Request
Method:GET
Endpoint: /departamentos
Headers:
Authorization: Bearer token (required)
Response
Status Code:200 OK
Response Example
Entity Structure
Department Entity
| Field | Type | Description |
|---|---|---|
id | Integer | Unique identifier for the department |
nombre | String | Name of the department |
Relationships
Departments are organizational units that:- Can be associated with employees
- May contain multiple positions (puestos)
- Part of the organizational hierarchy structure
Related Endpoints
- Positions API - Manage job positions within departments
- Units API - Manage organizational units