Monthly Attendance Report API
Generate Monthly Attendance Report
curl -X POST http://localhost/api/reports/attendance/monthly \
-H "Content-Type: application/json" \
-d '{
"filters": {
"from_date": "2024-08-01",
"to_date": "2024-08-31",
"academic_year_id": 1,
"report_type": "students", // or "staff"
"class_id": 101, // Optional
"section": "A", // Optional
"student_id": 1234, // Optional for individual student report
"staff_id": 5678 // Optional for individual staff report
},
"downloadFormat": "pdf" // or "excel"
}'
Parameters
- from_date: The start date of the report (format: YYYY-MM-DD).
- to_date: The end date of the report (format: YYYY-MM-DD).
- academic_year_id: The ID of the academic year.
- report_type: The type of report to generate ("students" or "staff").
- class_id: (Optional) The ID of the class (for student reports).
- section: (Optional) The section of the class (for student reports).
- student_id: (Optional) The ID of the student (for individual student reports).
- staff_id: (Optional) The ID of the staff member (for individual staff reports).
- downloadFormat: The format of the report to download ("pdf" or "excel").