The Agenda API allows teachers to create and manage academic agenda items — tasks, exams, and resources — scoped to a specific teacher assignment within an academic period. Each agenda item can have multiple file attachments, and students can submit their work directly through the platform. Teachers can view a per-item submission roster showing which students have delivered their work and which are still pending.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.
All agenda and submission endpoints require a valid Sanctum bearer token. Teacher-facing routes additionally require the
role:profesor middleware and the module:agenda feature module to be active for the tenant. Student submission routes require role:estudiante. The teacher submission-detail view requires role:profesor (no module check).Agenda Endpoints (Professor)
List Agenda Items
The academic period ID.
The teacher assignment (
asignacion_docente) ID scoped to the given period.Create an Agenda Item
Title of the agenda item (max 255 characters).
Full description or instructions for the task. Nullable.
Item type. Accepted values:
tarea, examen, recurso. Only tarea and examen accept student submissions.Due date and time (ISO 8601). Nullable.
Legacy single-file string reference. Use the dedicated upload endpoint for multi-file support.
201 Created
Get a Single Agenda Item
The agenda item ID.
Update an Agenda Item
The agenda item ID to update.
Updated title (max 255 characters).
Updated description. Nullable.
Updated type:
tarea, examen, or recurso.Updated due date. Nullable.
Updated single-file reference. Nullable.
200 OK
Delete an Agenda Item
The agenda item ID to delete.
200 OK
File Attachment Endpoints
Upload File Attachments
Uploads one or more files to an agenda item. Files are stored under theagendas/ directory in the public disk (max 20 MB each).
The agenda item ID to attach files to.
Array of files. Each file must be a valid upload and cannot exceed 20 MB (
max:20480).200 OK
Delete a File Attachment
Permanently removes a file from storage and deletes its database record.The
AgendaArchivo record ID to delete.200 OK
Replace a File Attachment
Deletes the existing file from disk and replaces it with a new upload. Accepted MIME types:pdf, doc, docx, png, jpg, jpeg. Maximum size: 10 MB.
The
AgendaArchivo record ID to replace.The replacement file. Allowed types:
pdf, doc, docx, png, jpg, jpeg. Max 10 MB.200 OK
Submission Roster (Professor)
List Student Submissions for an Agenda Item
Returns every enrolled student in the class alongside their submission status for the given agenda item.The agenda item ID.
The agenda item type (
tarea, examen, recurso).Title of the agenda item.
Array of enrollment records, one per enrolled student.
Student Submission Endpoints
The following routes require
role:estudiante. The authenticated student’s identity is resolved automatically from the bearer token — no estudiante_id parameter is needed in the URL.View Own Submission
Returns the authenticated student’s submission for a given agenda item, including any uploaded files. Returnsnull if no submission exists yet.
The agenda item ID.
200 OK
Submit a Task
Creates a new submission record for the authenticated student. This endpoint usesfirstOrCreate, so calling it multiple times for the same agenda_id is idempotent — duplicate submissions are not created.
Only agenda items with
tipo equal to tarea or examen accept submissions. Attempting to submit against a recurso item returns 400 Bad Request.The agenda item ID to submit against.
An optional text comment accompanying the submission. Nullable.
200 OK
Upload Files to a Submission
Attaches one or more files to an existing submission. Files are stored underentregas/ in the public disk (max 10 MB each).
The submission (
EntregaTarea) ID.Array of files. Each file cannot exceed 10 MB.
200 OK
Delete a Submission File
Removes a file from a student submission and deletes it from disk.The
EntregaTareaArchivo record ID to delete.200 OK
Submission Detail (Professor)
View Submission Detail
Returns the full details of a single student submission, including student info, comment, status, timestamp, and all attached files. Only accessible by the professor who owns the assignment.The submission ID.
Submission ID.
The student’s submission comment.
Submission state (e.g.
entregado).Formatted timestamp of submission (
Y-m-d H:i:s).List of files attached to the submission, each with
id, nombre_original, and url.