Updates theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Miguel-Rodriguez15/msvc/llms.txt
Use this file to discover all available pages before exploring further.
nombre of an existing Curso. The service layer looks up the course by id, applies the new nombre from the request body, and persists the change. Only the nombre field is overwritten — enrollment records (cursoUsuarios) are never modified by this operation and must be managed through the dedicated enrollment endpoints.
No authentication is required for this endpoint.
Endpoint
Path Parameters
The primary key of the course to update.
Request Body
Content-Type: application/json
The new name for the course.
Response
201 Created — The updatedCurso object.
Primary key of the course (unchanged).
The updated course name.
Existing enrollment junction records, unchanged by this operation.
Primary key of the
CursoUsuario junction record.The ID of the enrolled user.
Always an empty array (transient field, not populated in this response).
404 Not Found — Returned when no course with the given
id exists in the database.
Examples
Request
Response — 201 Created
Response — 404 Not Found
The response uses HTTP 201 (not 200) for a successful update — this matches the controller’s
ResponseEntity.status(HttpStatus.CREATED) return. Only nombre is writable; enrollment data is managed via PUT /asignar-usuario/{cursoId} and DELETE /eliminar-usuario/{cursoId}.