The Grades API covers the full grading workflow in Cole: directors and professors define evaluation periods within an academic period; professors then attach weighted criteria (e.g. “Quiz 20 %, Project 30 %, Final Exam 50 %”) to each assignment within those periods; grades are entered per criterion per student; and the gradebook endpoint computes weighted averages automatically. Averages and report cards aggregate those results across all evaluation periods.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.
Evaluation period routes require
role:director or role:profesor. All criteria, grade, gradebook, and average routes require role:profesor or role:director as indicated per section. All routes require a valid Sanctum bearer token. Criteria and grade entry routes additionally enforce professor ownership — a professor can only manage criteria and grades for their own assignments.Evaluation Periods
Evaluation periods group criteria into named reporting windows (e.g. “Primer Quimestre”, “Segundo Quimestre”). They are scoped to an academic period.List Evaluation Periods
The academic period ID.
orden ascending, each including its parent academicPeriod.
Example response 200 OK
Create an Evaluation Period
The academic period ID.
Name of the evaluation period (max 255 characters), e.g.
"Primer Quimestre".Sort order for this period within the academic year. Must be ≥ 1.
201 Created
Grading Criteria
Criteria represent the individual graded components within an evaluation period (e.g. “Tarea 1”, “Examen Parcial”). Each criterion carries a percentage weight; the sum of all criterion percentages for one assignment within one evaluation period cannot exceed 100.If adding or updating a criterion would push the total percentage above 100 for that assignment + evaluation period combination, the API returns
422 Unprocessable Entity with the message: "La suma de porcentajes para esta materia en este periodo no puede superar 100%".List Criteria for an Assignment
The teacher assignment ID. The authenticated professor must own this assignment.
periodoEvaluacion.
List Criteria by Evaluation Period
The evaluation period ID.
List Professor’s Own Criteria for an Evaluation Period
Returns only the criteria belonging to the authenticated professor’s assignments within the specified evaluation period.The evaluation period ID.
List Evaluation Periods That Have Criteria for an Assignment
Returns the evaluation periods that contain at least one criterion for the given assignment, ordered byorden.
The teacher assignment ID. The authenticated professor must own this assignment.
200 OK
Create a Criterion
The teacher assignment ID. Must be owned by the authenticated professor.
The evaluation period this criterion belongs to. Must exist in
periodos_evaluacion.Criterion name (max 255 characters), e.g.
"Tarea 1", "Examen Final".Weight of this criterion as a percentage (1–100). The running total for the assignment + evaluation period combination cannot exceed 100.
201 Created
Update a Criterion
The criterion ID. Must belong to the authenticated professor’s assignment.
Updated criterion name (max 255 characters).
Updated percentage weight (1–100). Validation checks the sum of all other criteria in the same assignment + evaluation period, ensuring the total stays ≤ 100.
200 OK
Delete a Criterion
The criterion ID. Must belong to the authenticated professor’s assignment.
200 OK
Grade Entry
Grades are entered per criterion. Each grade is a numeric value between 0 and 100. The weighted average is computed by the gradebook endpoint rather than stored —Nota records contain the raw score only.
List Grades for a Criterion
Returns all enrolled students with their raw grade (ornull) for the given criterion.
The criterion ID. Must belong to the authenticated professor’s assignment.
200 OK
Save Grades for a Criterion
UsesupdateOrCreate internally, so this endpoint is safe to call multiple times — existing grade records are updated and new ones are created as needed. Send the full roster on each call.
The criterion ID. Must belong to the authenticated professor’s assignment.
Array of grade objects, one per student.
200 OK
Gradebook
Full Gradebook — by Evaluation Period
Returns the complete gradebook for one assignment scoped to one evaluation period, including all criteria columns and the weighted average per student.The teacher assignment ID.
The evaluation period ID.
Column definitions for the gradebook.
One row per enrolled student.
200 OK
Alternative Gradebook — All Periods
Returns the same gradebook structure for an assignment but across all evaluation periods (not filtered to one). Useful for a complete at-a-glance view.The teacher assignment ID.
Averages and Report Cards
Average and report card endpoints are accessible to users with
role:profesor or role:director.Average for an Evaluation Period
Returns the weighted average per student for all grades within the specified evaluation period.The evaluation period ID.
200 OK
Final Average for a Student
Computes the overall final average for a student by averaging the weighted averages across all evaluation periods in which they have grades.The student ID.
The student ID.
Final average rounded to 2 decimal places, computed as
mean(promedio_per_period).200 OK
Full Report Card (Boletín) for a Student
Returns the student’s name, their weighted average per evaluation period, and their overall final average.The student ID.
Student full name.
One entry per evaluation period in which the student has grades.
Arithmetic mean of all period averages, rounded to 2 decimal places.
200 OK