Creates a newDocumentation 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.
Curso record in the cursos table. The request body must contain a nombre value — the field is annotated @NotEmpty in the entity class. On success the newly created course is returned with its auto-generated id, an empty cursoUsuarios list, and an empty usuarios list.
No authentication is required for this endpoint.
Endpoint
Request Body
Content-Type: application/json
The name of the course. The
nombre field is annotated @NotEmpty on the entity.Response
201 Created — The persistedCurso object.
Auto-generated primary key assigned by PostgreSQL.
The name supplied in the request body.
Always an empty array on creation — no users are enrolled yet.
Always an empty array on creation (transient field, not persisted).
Example
Request
Response — 201 Created
Only the
nombre field is persisted. Any additional fields sent in the request body are ignored. To add users to a course after creation, use PUT /asignar-usuario/{cursoId} or POST /crear-usuario/{cursoId}.