GET ./reports/age_groups

Returns the age groups report for the provided filters.

GET parameters

NameValue TypeValidationDetails
ascIDintRequiredSchool year ID.
cicluIDintOptionalSchool cycle ID.
astIDintOptionalStudy year ID.
clIDintOptionalClass ID.

Excel

To export the report in excel format use GET ./reports/age_groups/export_xls It allows the same parameters as the main endpoint but it ignores _limit, _offset and _order parameters.

Output example

{
"meta": {
"countTotal": "3",
"countData": "3",
"countOffset": "0"
},
"data": [
{
"ageGroup": null,
"male": "5",
"female": "4",
"other": "9",
"total": "18"
},
{
"ageGroup": "17",
"male": "4",
"female": "6",
"other": "0",
"total": "10"
}
]
}