Overview
The Family Data Capture API allows you to record information about the candidate’s family members. This includes parents, siblings, spouse, children, and other dependents. Multiple family members can be added, edited, and removed for each candidate.Authentication
All endpoints require authentication via theisLoggedIn middleware. Users must have an active session to access these endpoints.
Get Family Data
Retrieves all family member records for a specific evaluation.Path Parameters
Encrypted evaluation ID that uniquely identifies the candidate’s evaluation record
Response
Returns a view with the following data:Array of family member records, each containing complete information about a family member
Save Family Member
Adds a new family member to the candidate’s profile.Request Body
Evaluation ID for the candidate
First name(s) of the family member
Last name(s) of the family member
Relationship to the candidate (e.g., “Padre”, “Madre”, “Hijo”, “Hija”, “Esposo/a”, “Hermano/a”)
Occupation or profession of the family member
Age of the family member in years
Whether the family member is alive (“Si” or “No”)
Contact phone number for the family member
Whether the family member is financially dependent on the candidate (“Si” or “No”)
Response
“Se guardo familiar !” - Family member saved successfully
Example Request
Notes
The system automatically concatenatesfamiliarApellidos and familiarNombres to create the full name stored as familiarNombre in the database.
Edit Family Member
Updates information for an existing family member.Request Body
ID of the family member record (note: despite the name, this is the familiarID)
Full name of the family member
Relationship to the candidate
Occupation or profession
Age in years
Whether the family member is alive (“Si” or “No”)
Contact phone number
Whether financially dependent (“Si” or “No”)
Response
“Familiar actualizado !” - Family member updated successfully
Example Request
Delete Family Member
Removes a family member record from the candidate’s profile.Request Body
ID of the family member record to delete
Response
“Familiar eliminado !” - Family member deleted successfully
Example Request
Error Responses
All endpoints return the following error response on failure:“Algo salio mal !” - Generic error message indicating something went wrong
Common Relationship Types
Typical values forfamiliarParentesco include:
- Padre - Father
- Madre - Mother
- Esposo/Esposa - Spouse
- Hijo/Hija - Son/Daughter
- Hermano/Hermana - Brother/Sister
- Abuelo/Abuela - Grandfather/Grandmother
- Tío/Tía - Uncle/Aunt
- Primo/Prima - Cousin
- Suegro/Suegra - Father-in-law/Mother-in-law
- Cuñado/Cuñada - Brother-in-law/Sister-in-law
Workflow
- First, retrieve existing family data using the GET endpoint
- Add new family members using the Save endpoint
- Edit family member details as needed using the Edit endpoint
- Remove family members if necessary using the Delete endpoint
Best Practices
- Include all immediate family members (parents, siblings, spouse, children)
- Mark deceased family members with
familiarVive: "No" - Provide contact information for living family members when available
- Accurately indicate financial dependency status for each family member
- Verify ages and relationships before saving