Initialize modules for a school
Initialize all required modules for a school by its ID
path Parameters
idnumber · min: 1 · requiredId
Responses
Modules initialized successfully
idnumber · requiredId
createdAtstring · date-time · requiredCreation Date
updatedAtstring · date-time · requiredUpdated Date
tenantIdstring · requiredTenant ID for the school
Example: tenant-123namestring · requiredName of the school
Example: Springfield High Schoolemailstring · requiredEmail school
Example: contact@school.comphonestring · requiredPhone school
Example: +521148863257slugImgstring · requiredSlug of the school image
Example: /slug-school/school-123.pnglevelsstring[] · requiredLevels of the school
Example: Middle School, High Schoolstatusstring · enum · requiredSchool status
Enum values:INITIAL_DATACONFIGURED
workCenterKeystringWork center key of the school
Example: 0000001
Get all schools with pagination
Retrieve a paginated list of schools. Returns current school if tenant is not brein
query Parameters
pagenumberCurrent page
pageSizenumberPage size
namestringName filter
Responses
dataobject[] · requiredData
pagenumberCurrent page
pageSizenumberPage size
totalnumberTotal
lastPagenumberLast page
nextstringNext page (endpoint)
previousstringPrevious page (endpoint)
Create a new school
Create a new school with the provided data
Request Body
namestring · requiredName of the school
Example: Springfield High Schooladministratorobject · requiredSchool Administrator
workCenterKeystringWork center key of the school
Example: 0000001
Responses
School created
idnumber · requiredId
createdAtstring · date-time · requiredCreation Date
updatedAtstring · date-time · requiredUpdated Date
tenantIdstring · requiredTenant ID for the school
Example: tenant-123namestring · requiredName of the school
Example: Springfield High Schoolemailstring · requiredEmail school
Example: contact@school.comphonestring · requiredPhone school
Example: +521148863257slugImgstring · requiredSlug of the school image
Example: /slug-school/school-123.pnglevelsstring[] · requiredLevels of the school
Example: Middle School, High Schoolstatusstring · enum · requiredSchool status
Enum values:INITIAL_DATACONFIGURED
workCenterKeystringWork center key of the school
Example: 0000001
Get school by ID
Retrieve a specific school by its ID with all relations
path Parameters
idnumber · min: 1 · requiredId
Responses
School detail
idnumber · requiredId
createdAtstring · date-time · requiredCreation Date
updatedAtstring · date-time · requiredUpdated Date
tenantIdstring · requiredTenant ID for the school
Example: tenant-123namestring · requiredName of the school
Example: Springfield High Schoolemailstring · requiredEmail school
Example: contact@school.comphonestring · requiredPhone school
Example: +521148863257slugImgstring · requiredSlug of the school image
Example: /slug-school/school-123.pnglevelsstring[] · requiredLevels of the school
Example: Middle School, High Schoolstatusstring · enum · requiredSchool status
Enum values:INITIAL_DATACONFIGURED
workCenterKeystringWork center key of the school
Example: 0000001
Update a school
Update an existing school by its ID
path Parameters
idnumber · min: 1 · requiredId
Request Body
tenantIdstringTenant ID for the school
Example: tenant-123workCenterKeystringWork center key of the school
Example: 0000001namestringName of the school
Example: Springfield High SchoolemailstringEmail school
Example: contact@school.comphonestringPhone school
Example: +521148863257slugImgstringSlug of the school image
Example: /slug-school/school-123.pnglevelsstring[]Levels of the school
Example: Middle School, High Schoolstatusstring · enumSchool status
Enum values:INITIAL_DATACONFIGUREDaddressobjectSchool address
Responses
School updated
Get school statistics
Retrieve statistics for a school including counts of students, teachers, etc.
path Parameters
idnumber · min: 1 · requiredId
Responses
School statistics
studentsCountnumber · requiredStudents count
Example: 150mothersCountnumber · requiredMothers count
Example: 120fathersCountnumber · requiredFathers count
Example: 100delegatesCountnumber · requiredDelegates count
Example: 25teachersCountnumber · requiredTeachers count
Example: 30administrativeCountnumber · requiredAdministrative count
Example: 15usersCountnumber · requiredUsers count
Example: 440

