An inscripción (enrollment) is the record that places a student into a specific course and section within an academic period. Cole enforces a single enrollment per student per period — a student cannot be enrolled in two different courses simultaneously within the same period. The academic period must also be active (Documentation Index
Fetch the complete documentation index at: https://mintlify.com/iamalexis689725/cole/llms.txt
Use this file to discover all available pages before exploring further.
activo = true) before new enrollments can be created.
Directors manage the full lifecycle of enrollments. Professors can query the roster of students enrolled in their specific class section.
All requests require a valid Bearer token. Director endpoints require role:director; the teacher roster endpoint requires role:profesor.
Inscripciones (Director)
List Enrollments
Requires
role:director.The ID of the academic period.
Get Enrollment
Requires
role:director.The ID of the academic period.
The ID of the enrollment.
Create Enrollment
Requires
role:director. The academic period must be active.- The
paralelo_idbelongs to the givencurso_id. - The student is not already enrolled in any course within this period (one enrollment per student per period).
- The academic period is active.
The ID of the academic period.
ID of the student to enroll. Must belong to the authenticated tenant.
ID of the course the student is being placed in. Must belong to the
tenant.
ID of the section within the course. Must belong to both the tenant and
the given
curso_id.201 Created
Human-readable confirmation message.
The created enrollment with all relationships loaded.
Internal ID of the enrollment record.
ID of the enrolled student.
ID of the assigned course.
ID of the assigned section.
ID of the academic period this enrollment belongs to.
The student record with nested
user (name and email).The course record (
id, nombre, nivel).The section record (
id, nombre, turno).The academic period record (
id, nombre).| Status | Condition |
|---|---|
403 Forbidden | The academic period is inactive. |
409 Conflict | The student is already enrolled in this academic period. |
422 Unprocessable Entity | The paralelo_id does not belong to the given curso_id; or a referenced ID was not found within the tenant. |
Update Enrollment
Requires
role:director.curso_id and paralelo_id are changed, the new paralelo must belong to the new curso. The uniqueness constraint (one enrollment per student per period) is also re-validated.
Path Parameters
The ID of the academic period.
The ID of the enrollment to update.
Updated student ID. Must belong to the tenant. Cannot match another
enrollment for this period.
Updated course ID. Must belong to the tenant.
Updated section ID. Must belong to the tenant and to the effective
curso_id.200 OK
| Status | Condition |
|---|---|
409 Conflict | The updated estudiante_id is already enrolled in this period in a different enrollment record. |
422 Unprocessable Entity | The resolved paralelo_id does not belong to the resolved curso_id. |
Delete Enrollment
Requires
role:director.The ID of the academic period.
The ID of the enrollment to delete.
200 OK
Enrolled Students by Class (Professor)
List Students for a Class Section
Requires
role:profesor.The ID of the academic period.
The ID of the course.
The ID of the section.
The academic period ID used in the query.
The course ID used in the query.
The section ID used in the query.