Parents (padres de familia) are the guardians or legal representatives of enrolled students. A parent account can be linked to one or more students through aDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/andrespaul123/micole-flutter/llms.txt
Use this file to discover all available pages before exploring further.
PadreHijo relationship that records the type of kinship (padre, madre, tutor, abuelo, or otro). Once the link is established, the parent gains a read-only portal showing grades, attendance records, the class agenda, and the anecdotario for each of their children — all scoped to the current tenant.
The PadreFamilia Model
Parent identity fields (name, email) are stored on the linked user account and surfaced through the user relationship in every API response. Contact and professional details are stored directly on the parent record.
| Field | Type | Description |
|---|---|---|
id | int | Primary key, auto-assigned |
name | string | Full name (from the linked user account) |
email | string | Login e-mail (from the linked user account) |
telefono | string? | Optional contact phone number |
ocupacion | string? | Optional occupation or profession |
The PadreHijo Relationship Model
ThePadreHijo model represents the link between a parent and a student. It is returned when calling getMisHijos(), which hits GET /padre/mis-hijos from a logged-in parent session.
| Field | Type | Description |
|---|---|---|
id | int | Student’s primary key |
nombre | string | Student’s full name |
codigo_estudiante | string | Student’s unique code |
parentesco | string | Kinship type: padre, madre, tutor, abuelo, or otro |
Repository Methods
ThePadreFamiliaRepository class handles all HTTP communication with the API. Every method uses the injected Dio client and the /padre-familias resource path.
List Parents
GET /api/padre-familiasReturns the full list of registered parents in the current tenant.Create Parent
POST /api/padre-familiasCreates a new parent and their linked user account in a single request.Get Parent
GET /api/padre-familias/:idFetches a single parent record by its numeric ID.Update Parent
PUT /api/padre-familias/:idUpdates the parent’s profile. Pass null for password to keep the existing one.Delete Parent
DELETE /api/padre-familias/:idPermanently removes the parent and their user account from the tenant.Assign Student
POST /api/padre-familias/asignar-estudianteLinks a student to the parent with a specified kinship type.Get Parent's Students
GET /api/padre-familias/:id/estudiantesReturns the list of students currently linked to the given parent.My Children (parent session)
GET /api/padre/mis-hijosReturns the children linked to the currently authenticated parent, including kinship information.createPadre
Full name of the parent or guardian.
Login e-mail address. Must be unique across the tenant.
Initial password for the parent’s user account. Required only on creation.
Optional contact phone number.
Optional occupation or profession of the parent.
updatePadre
Numeric ID of the parent record to update.
Updated full name of the parent or guardian.
Updated login e-mail address.
New password. Pass
null to leave the existing password unchanged.Updated contact phone number. Pass
null to clear the field.Updated occupation or profession. Pass
null to clear the field.asignarEstudiante
ID of the parent to link the student to.
ID of the student to link.
Kinship type. Accepted values:
padre, madre, tutor, abuelo, otro. Defaults to padre when omitted.getMisHijos
Returns the children linked to the currently authenticated parent. The response body is read from theestudiantes key and each entry is decoded into a PadreHijo object.
Linking a Parent to a Student
Create the parent account
Navigate to
/padres/create and fill in the name, e-mail, password, and optional contact fields. On success, the parent is added to the tenant directory and can log in immediately.Open the assign-student screen
From the parent list, tap the Assign Student action to navigate to
/padres/:id/estudiantes. The screen loads the full list of registered students from GET /api/estudiantes.Select a student and kinship
Choose the student from the dropdown and select the kinship type (
padre, madre, tutor, abuelo, or otro). Tap Asignar Estudiante to confirm. This calls POST /api/padre-familias/asignar-estudiante.What Parents Can See
Once a student is linked to a parent, the parent’s authenticated session gives them read-only access to the following data for each child:Grades
All scored assessments and final grades recorded by the teacher in the gradebook for the current academic period.
Attendance
Daily attendance records showing present, absent, and late entries for every class session.
Agenda & Tasks
Homework assignments and upcoming events published by the teacher on the class agenda.
Anecdotario
Behavioral and observational notes recorded by the teacher for the student throughout the period.
Application Routes
| Route | Screen | Description |
|---|---|---|
/padres | PadreListScreen | Paginated list of all registered parents |
/padres/create | PadreCreateScreen | Form to register a new parent |
/padres/:id/edit | PadreEditScreen | Form to edit an existing parent’s profile |
/padres/:id/estudiantes | PadreAsignarEstudianteScreen | Assign a student to the parent with kinship type |
/mis-hijos | MisHijosScreen | Authenticated parent’s view of their linked children |
/mis-hijos/:estudianteId | PadreDashboardScreen | Dashboard for a specific child’s data |
password is only required when creating a parent account. When updating, leave the password field empty to keep the existing credentials unchanged. The API only includes the field in the PUT payload when a new value is explicitly provided.