The Anecdotario API enables teachers to maintain structured behavioral and academic observation records for individual students. Each record (an anecdotario) is classified by type — conduct, merit, or general observation — and is linked to the student, the creating teacher, the teacher’s assignment, and the active academic period. Teachers can filter the list by student, period, or assignment. The index endpoint supports optional query parameters for targeted filtering without requiring a separate route per dimension.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 anecdotario management routes require a valid Sanctum bearer token and the
role:profesor middleware. Parents can view their child’s records through the parent portal at GET /api/padre/mis-hijos/{estudiante}/anecdotarios (documented separately in the Parent Portal reference).List Anecdotal Records
Returns all anecdotal records in reverse-chronological order. Supports optional query parameters to filter results.Filter records to a specific student.
Filter records to a specific academic period.
Filter records to a specific teacher assignment.
estudiante.user, profesor.user, asignacionDocente.subject, and academicPeriod objects.
Example request
200 OK
Create an Anecdotal Record
Creates a new anecdotal record. Theprofesor_id is resolved automatically from the authenticated user’s linked professor profile — it does not need to be supplied in the request body.
The student this record refers to. Must exist in the
estudiantes table.The teacher assignment in whose context this observation was made. Must exist in
asignaciones_docente.The academic period to which this record belongs. Must exist in
academic_periods.Classification of the record. Accepted values:
conducta— a conduct-related incident.merito— a positive merit or achievement.observacion— a general academic or behavioral observation.
Short title or heading for the record (max 255 characters).
Full narrative description of the event or observation.
Date the event occurred, in
YYYY-MM-DD format.201 Created
Get a Single Anecdotal Record
Returns a specific anecdotario with all related data eagerly loaded.The anecdotario ID.
estudiante.user, profesor.user, asignacionDocente.subject, and academicPeriod relationships.
Update an Anecdotal Record
Replaces the editable fields of an existing record. Theprofesor_id cannot be changed through this endpoint.
The anecdotario ID to update.
Updated student reference. Must exist in
estudiantes.Updated assignment reference. Must exist in
asignaciones_docente.Updated academic period reference. Must exist in
academic_periods.Updated type:
conducta, merito, or observacion.Updated title (max 255 characters).
Updated full description.
Updated date in
YYYY-MM-DD format.200 OK
Delete an Anecdotal Record
Permanently deletes an anecdotario. This action is irreversible.The anecdotario ID to delete.
200 OK
Record Fields Reference
The following table describes every field stored in theanecdotarios table as defined in the database migration.
| Field | Type | Required | Description |
|---|---|---|---|
id | integer | — | Auto-incremented primary key. |
tenant_id | integer | yes | Multi-tenant scope. Automatically set from the authenticated user. |
estudiante_id | integer | yes | Foreign key to estudiantes. |
profesor_id | integer | yes | Foreign key to profesores. Set automatically from the authenticated user. |
asignacion_docente_id | integer | yes | Foreign key to asignaciones_docente. |
academic_period_id | integer | yes | Foreign key to academic_periods. |
tipo | enum | yes | conducta, merito, or observacion. |
titulo | string | yes | Short title (max 255 characters). |
descripcion | text | yes | Full narrative description. |
fecha | date | yes | Date the event occurred (YYYY-MM-DD). |
created_at | timestamp | — | Auto-managed by Laravel. |
updated_at | timestamp | — | Auto-managed by Laravel. |
Parent Portal Access
Parents can read their child’s anecdotal records through the parent portal. This route is read-only and is covered in the Parent Portal reference section.role:padre and is scoped so a parent can only access records for students linked to their own account.