Overview
The Career Trajectory API manages employment history and career information. The system handles two distinct evaluation types:- Permanencia (Current Employees): For existing employees undergoing background re-evaluation
- Nuevo Ingreso (New Hires): For candidates applying for new positions
Authentication
All endpoints require authentication via theisLoggedIn middleware. Users must have an active session to access these endpoints.
Get Career Trajectory Data
Retrieves career trajectory data based on evaluation type.Path Parameters
Encrypted evaluation data
Response
For Permanencia (tipoEvalID === 1):Career trajectory data for current employees
Array of previous department assignments within the organization
Family members with legal processes
Family members in law enforcement/corporation
Career trajectory data for new hire candidates
Array of previous employment records
Family members with legal processes
Family members in law enforcement/corporation
Save Career Trajectory (Permanencia)
Saves career trajectory information for current employees.Request Body
Evaluation ID
Current Position Information
Government department or agency
Current department assignment
Current job position/role
Rank or grade level
Date of entry into the organization
Date of last promotion
Work zone or area
Job Responsibilities
Whether employee carries a firearm (“Si” or “No”)
Whether manages personnel (“Si” or “No”)
Number of people managed (if applicable)
Detailed description of job functions
Supervisor Information
Supervisor’s name
Supervisor’s position
Supervisor’s contact number
Disciplinary History
Any accusations (“Si” or “No”)
Any legal processes (“Si” or “No”)
Any sanctions (“Si” or “No”)
Any administrative procedures (“Si” or “No”)
Any complaints (“Si” or “No”)
Description of what occurred (if applicable)
Reason for the process
Supporting documents
CCC (Control, Confianza, Certificación) History
Date of last CCC evaluation
Where the CCC was conducted
Agency that conducted the CCC
Reason for CCC evaluation
Response
“Se guardaron datos laborales. Continua con Adscripciones” - Work data saved, continue with assignments
Update Career Trajectory (Permanencia)
Updates career trajectory information for current employees. Contains all fields from SaveTrayectoria plus:Evaluation type identifier
Name of family member with legal issues
Relationship to family member
What legal situation occurred
Additional legal details
Name of family member in corporation
Relationship to family member in corporation
Response
“Se actualizaron datos laborales. Continua con Adscripciones” - Work data updated
Save Career Trajectory (Nuevo Ingreso)
Saves career trajectory for new hire candidates.Request Body
Evaluation ID
Position applying for
How they learned about the vacancy
First key function they expect to perform
Second key function
Third key function
Any accusations (“Si” or “No”)
Any legal processes (“Si” or “No”)
Any sanctions (“Si” or “No”)
Any administrative procedures (“Si” or “No”)
Any complaints (“Si” or “No”)
What occurred (if applicable)
Reason for the process
Resolution documents
Whether they’ve had CCC before (“Si” or “No”)
When CCC was conducted
Which agency conducted CCC
Reason for CCC
Response
“Se guardó trayectoria laboral NI!” - Career trajectory saved for new hire
Update Career Trajectory (Nuevo Ingreso)
Updates career trajectory for new hires. Contains all SaveTrayectoriaNI fields plus:Name of family member with legal issues
Relationship to family member
What legal situation occurred
Additional legal details
Name of family member in service/corporation
Relationship
Their position
Their department/agency
Response
“Se actrualizó trayectoria laboral NI!” - Career trajectory updated
Save Previous Employment
Saves previous employment records for new hire candidates.Request Body
Evaluation ID
Number of employment records being submitted (“1” for single, or count for multiple)
Company name
Position held
Company address
Employment period
Salary/income
Reason for leaving
Response
“Se guardaron empleos” - Employments saved successfully
Delete Employment
Deletes a previous employment record.Request Body
ID of the employment record to delete
Response
“Se elimino empleo” - Employment deleted successfully
Save Department Assignments
Saves previous department assignments for current employees.Request Body
Evaluation ID
Number of assignment records
Department name
Position held
Time period
Salary during this period
Reason for change
Supervisor’s name
Response
“Se guardaron adscripciones” - Assignments saved successfully
Save Family in Legal Process
Records family members involved in legal processes.Request Body
Evaluation ID
Name of family member
Relationship to candidate
When the legal issue occurred
Description of the legal situation
Response
“Se guardaro familiar con proceso” - Family member with legal process saved
Save Family in Corporation
Records family members working in law enforcement or the corporation.Request Body
Evaluation ID
Name of family member
Relationship to candidate
Response
“Se guardaro familiar en coorporacion” - Family member in corporation saved
Error Responses
All endpoints return:“Algo salio mal !” - Generic error message
Workflow
For Permanencia (Current Employees):
- Get trajectory data
- Save/Update career trajectory
- Save department assignments
- Add family in legal processes (if applicable)
- Add family in corporation (if applicable)
For Nuevo Ingreso (New Hires):
- Get trajectory data
- Save/Update career trajectory for new hire
- Save previous employments
- Add family in legal processes (if applicable)
- Add family in corporation (if applicable)