Use this file to discover all available pages before exploring further.
Cole tracks attendance at the individual class-session level. Each attendance record (asistencia) belongs to a specific teacher assignment and date, and contains one detail row per enrolled student. Teachers record attendance once per class day; if they need to correct an error they can replace the entire detail set through the update endpoint. This guide explains how to record, retrieve, and update attendance sessions.
Attendance functionality is gated behind the asistencia module. The super-admin must activate this module for the tenant before any attendance endpoints become available. Requests made without the module active will return 403 Forbidden.Activate the module:
Submit attendance for an entire class session in one request. The body must include a fecha (ISO date) and an asistencias array — one entry per student.
Cole prevents double-recording attendance for the same assignment on the same date. If attendance has already been submitted for that assignment + date combination, the API returns 409 Conflict:
{ "message": "Ya se registró asistencia para esta materia en esta fecha"}
If you need to make corrections, use the update endpoint instead.
Get a list of all recorded attendance sessions for an assignment, ordered from newest to oldest. This gives a per-date summary without the full student detail:
curl -X GET "https://api.yourschool.com/api/periodos/1/asignaciones/5/asistencia" \ -H "Authorization: Bearer <token>"
If an error was made — a student marked absent who was actually present — use PUT /api/asistencia/{id} to replace all detail records for that session. The update deletes all existing detail rows and inserts the new ones you provide.
The update endpoint replaces all detail records. You must include the full list of students in the request body — any student omitted will have no attendance record for that session after the update.