Send anDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Distribuidos-Org/ms-alumnos/llms.txt
Use this file to discover all available pages before exploring further.
update_alumno message to partially update an existing student record. The payload must include the id of the target record; all other fields from CreateAlumnoDto are optional. The service uses TypeORM’s preload method to merge only the supplied fields into the existing entity before saving. If no record is found for the given id, the service throws an RpcException with HTTP status 404.
Message pattern
Request payload
UpdateAlumnoDto extends PartialType(CreateAlumnoDto), making every CreateAlumnoDto field optional while adding a required id.
The
alumnoId of the student record to update. Must be a positive integer.First name. Minimum 2 characters, maximum 50 characters.
Paternal surname. Minimum 2 characters, maximum 50 characters.
Maternal surname. Maximum 50 characters.
National ID number. Must be exactly 8 characters. Must remain unique.
Age of the student. Must be an integer.
Email address. Must be a valid email format. Maximum 100 characters. Must remain unique.
Phone number. Maximum 15 characters.
University name. Maximum 100 characters.
Faculty or school name. Maximum 100 characters.
Profession. Maximum 50 characters.
Academic degree. Maximum 50 characters.
Whether the student graduated locally.
New password in plaintext. Minimum 6 characters, maximum 60 characters. See the warning below before using this field.
Response
The updatedAlumno entity reflecting all applied changes.
Primary key of the student record.
First name of the student.
Paternal surname.
Maternal surname. May be
null.National ID number (8 characters).
Age of the student. May be
null.Email address.
Phone number. May be
null.University name.
Faculty or school name. May be
null.Profession. May be
null.Academic degree. May be
null.Whether the student graduated locally.
The response includes a
contrasena field containing the stored value of the student’s password (a bcrypt hash for unmodified passwords, or plaintext if contrasena was included in this update — see the warning below). Callers should discard or ignore this field.Example
Errors
| Status | Cause |
|---|---|
404 | No alumno exists with the given id. The exception payload is { "status": 404, "message": "Alumno #1 not found" }. |
400 | Validation failed on one or more supplied fields (e.g. a string exceeds its maximum length, email is malformed, dni is not 8 characters, or contrasena is shorter than 6 characters). |