This endpoint creates a new applicant document in the FirestoreDocumentation 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.
postulantes collection. The request body is validated through the User model class, which sets default values for application_date (current date/time) and status ("pending") if they are not provided. The Firestore document id is auto-generated by Firebase. A valid Bearer token is required — unauthenticated requests will be rejected by the authMiddleware.
Endpoint
| Method | POST |
| Path | /api/postulantes |
| Auth | Bearer token required |
| Content-Type | application/json |
Request headers
JWT Bearer token. Format:
Bearer <token>. Obtain a token from POST /api/auth/login.Request body
First name of the applicant.
Last name (surname) of the applicant.
Email address of the applicant.
Date of birth of the applicant. Recommended format:
"YYYY-MM-DD".Contact telephone number of the applicant.
City of residence of the applicant.
Province of residence of the applicant.
Job position the applicant is applying for.
Date and time the application was submitted. Defaults to the current date/time at the moment the record is created if omitted.
Initial status of the application. Defaults to
"pending" if omitted.Responses
201 Created
The applicant was successfully stored in Firestore. The response echoes back all fields that were written (excluding the auto-generatedid).
401 Unauthorized
Returned when theAuthorization header is missing or does not start with Bearer .