Departments
Company departments.
Module: HR (hr).
Endpoints
Section titled “Endpoints”GET /api/v1/departments- List with filters, sorting and pagination (scopehr:read)GET /api/v1/departments/{id}- A record by id (scopehr:read)POST /api/v1/departments- Create a record (scopehr:write)PATCH /api/v1/departments/{id}- Modify the submitted fields (scopehr:write)DELETE /api/v1/departments/{id}- Delete or deactivate (scopehr:write)
Fields
Section titled “Fields”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).