This endpoint uses Firestore’sDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Manuelfg1985/Proyecto_Final_26/llms.txt
Use this file to discover all available pages before exploring further.
updateDoc to partially or fully update an existing applicant document in the postulantes collection. Only the fields included in the request body are changed — all other fields remain untouched. A valid Bearer token is required; requests without a valid token are rejected by the authMiddleware before reaching the controller.
You only need to include the fields you want to change in the request body. Fields not present in the body will not be modified in Firestore.
Endpoint
| Method | PUT |
| Path | /api/postulantes/:id |
| Auth | Bearer token required |
| Content-Type | application/json |
Path parameters
The Firestore document ID of the applicant to update. This is the same
id returned when the record was created or listed.Request headers
JWT Bearer token. Format:
Bearer <token>. Obtain a token from POST /api/auth/login.Request body
Send any subset of applicant fields you wish to update. All fields are optional for this operation.Updated first name of the applicant.
Updated last name (surname) of the applicant.
Updated email address of the applicant.
Updated date of birth.
Updated contact telephone number.
Updated city of residence.
Updated province of residence.
Updated job position the applicant has applied for.
Updated application submission date.
Updated application status. Common values:
"pending", "reviewed", "accepted", "rejected".Responses
200 OK
The Firestore document was updated successfully.401 Unauthorized
Returned when theAuthorization header is missing or does not start with Bearer .
403 Forbidden
Returned when the token is present but invalid or expired.500 Internal Server Error
Returned when the FirestoreupdateDoc call fails — for example, if the document ID does not correspond to an existing document or a database error occurs.
Example
The following request updates only thestatus field of the applicant with ID abc123XyZ, leaving all other fields unchanged.