Skip to content

Departments

Company departments.

Module: HR (hr).

  • GET /api/v1/departments - List with filters, sorting and pagination (scope hr:read)
  • GET /api/v1/departments/{id} - A record by id (scope hr:read)
  • POST /api/v1/departments - Create a record (scope hr:write)
  • PATCH /api/v1/departments/{id} - Modify the submitted fields (scope hr:write)
  • DELETE /api/v1/departments/{id} - Delete or deactivate (scope hr:write)
  • id (string, uuid; read): Unique identifier (UUID).
  • parent_id (string; write)
  • name (string; write, required)
  • code (string; write)
  • description (string; write)
  • manager_id (string, uuid; write)
  • cost_center_id (string, uuid; write)
  • sort_order (number; write)
  • is_active (boolean; write): Whether the record is active.
  • created_at (string, date-time; read): Creation date (ISO 8601).
  • updated_at (string, date-time; read): Last modification date (ISO 8601).