Student Class Attendance
Returns a student's attendance summary for every batch they are enrolled in, in your organizations: sessions held, present, absent, late and excused counts, and batch progress. Put the student's user ID in the URL.
GET
/admin/batches/attendance/{userId}Student Class Attendance
curl --request GET \
--url 'https://<your-api-host>/nuSource/api/v1/admin/batches/attendance/{userId}' \
--header 'APIKEY: <your-api-key>' \
--header 'ORGID: <your-org-id>'{
"code": 200,
"message": "Success",
"classes": [
{
"bundle_id": 141,
"course_name": "RISC-V Processor - RV32I Base ISA ",
"total_classes": "0",
"present": "0",
"batch_start_date": null,
"batch_end_date": null,
"batch_progress": null,
"absent": "0",
"late": "0",
"excused": "0",
"master_batch_id": 675,
"master_batch_name": "RISC-V Processor - RV32I Base ISA ",
"classusers_start_date": 1734220800,
"classusers_end_date": 0,
"batch_status": 0,
"mb_user_status": 2,
"mb_user_state": 1
},
{
"bundle_id": 184,
"course_name": "Semiconductors - VLSI & Embedded Systems Overview",
"total_classes": "0",
"present": "0",
"batch_start_date": null,
"batch_end_date": null,
"batch_progress": null,
"absent": "0",
"late": "0",
"excused": "0",
"master_batch_id": 928,
"master_batch_name": "Semiconductors - VLSI & Embedded Systems Overview",
"classusers_start_date": 1734220800,
"classusers_end_date": 0,
"batch_status": 0,
"mb_user_status": 2,
"mb_user_state": 1
},
{
"bundle_id": 178,
"course_name": "Embedded System Design - Module Test",
"total_classes": "0",
"present": "0",
"batch_start_date": 1738108800,
"batch_end_date": 1765324800,
"batch_progress": 50,
"absent": "0",
"late": "0",
"excused": "0",
"master_batch_id": 1035,
"master_batch_name": "ESD 02",
"classusers_start_date": 1738108800,
"classusers_end_date": 0,
"batch_status": 0,
"mb_user_status": 1,
"mb_user_state": 1
},
{
"bundle_id": 200,
"course_name": "Blended Embedded System Design - Bare Metal",
"total_classes": "0",
"present": "0",
"batch_start_date": 1734998400,
"batch_end_date": 1766534400,
"batch_progress": 0,
"absent": "0",
"late": "0",
"excused": "0",
"master_batch_id": 1188,
"master_batch_name": "ESD 02",
"classusers_start_date": 1743206400,
"classusers_end_date": 0,
"batch_status": 0,
"mb_user_status": 1,
"mb_user_state": 1
},
{
"bundle_id": 205,
"course_name": "Blended Embedded System Design - Embedded Linux",
"total_classes": 125,
"present": "20",
"batch_start_date": 1743465600,
"batch_end_date": 1775001600,
"batch_progress": 32,
"absent": "0",
"late": "0",
"excused": "0",
"master_batch_id": 1210,
"master_batch_name": "ESD 02 Phase 2",
"classusers_start_date": 1743465600,
"classusers_end_date": 0,
"batch_status": 0,
"mb_user_status": 1,
"mb_user_state": 1
}
]
}Access: Institute admins, plus custom roles that can view learner details.
Path parameters
The student.
Response
codeinteger
Example:
200messagestring
Example:
Successclassesobject[]
Show child attributesHide child attributes
classes.bundle_idinteger
Example:
141classes.presentstring
Example:
0The student's progress in the batch, or
nullclasses.absentstring
Example:
0classes.latestring
Example:
0classes.excusedstring
Example:
0classes.master_batch_idinteger
Example:
675- for ebooks, playlists and test seriesExample:
RISC-V Processor - RV32I Base ISA Example:
1734220800classes.batch_statusinteger
Example:
0Notes: Counts may come back as strings ("total_classes": "0"). Batches of resource-only courses are left out. Rate limit: 30 requests per minute; going over locks you out for 30 minutes.