Employees (empleados) are the internal staff members who receive materials when a dispatch is processed. Every employee record is linked to a destination — the office, workshop, or department where they are based — and can be flagged as active or inactive to control whether they appear as selectable recipients. You manage all employees at theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/EricMartinez758/corpointa-frontend/llms.txt
Use this file to discover all available pages before exploring further.
/empleados route.
Data Model
Each employee record contains the following fields:| Field | Type | Constraints | Description |
|---|---|---|---|
id_empleado | integer | Primary key, auto-generated | Unique numeric identifier for the employee |
nombre_completo | string | Required, max 200 chars | Full name of the employee |
cedula | string | Optional, max 30 chars | Venezuelan national identity number |
telefono | string | Optional, max 30 chars | Contact phone number |
fk_id_destino | integer | Required, foreign key | References id_destino in the Destinations table |
activo | boolean | Optional | Whether the employee is currently active |
nombre_destino | string | Read-only (JOIN) | Destination name resolved server-side for display |
fk_id_destino must reference an existing destination record. If you attempt to create or update an employee with a destination ID that does not exist, the request will be rejected. Set up your destinations before adding employees.Features
CRUD Table
The employee list displays
nombre_completo, cedula, telefono, the resolved nombre_destino, and the active status. Records can be created, edited, and deleted via inline dialogs.Filter by Destination
Use the destination column filter to show only employees assigned to a specific office, workshop, or department.
Active / Inactive Toggle
Each row includes an active status indicator. Inactive employees are hidden from dispatch recipient selectors throughout the application but remain in the database for historical records.
Delete with Confirmation
Deleting an employee opens a confirmation dialog. Employees who have been assigned to historical dispatches are preserved in those records even after deletion.
API Reference
All endpoints operate on the/empleados resource and return or accept JSON.
List Employees
Returns an array of all employee records, including the server-resolved Response
nombre_destino.Get Single Employee
Returns a single employee by their
id_empleado.Create Employee
Creates a new employee. The
id_empleado, nombre_destino, and activo fields are managed by the server and should not be sent in the request body.Update Employee
Updates an existing employee. You may include
activo to toggle the employee’s status.Delete Employee
Permanently removes an employee record.
Field Validation
Full name of the employee. Must be between 1 and 200 characters.
The ID of the destination this employee is assigned to. Must reference an existing destination record.
Venezuelan national identity number. Optional; max 30 characters.
Contact phone number. Optional; max 30 characters.
Marks the employee as active (
true) or inactive (false). Optional field — inactive employees are excluded from dispatch recipient selectors.