How to pull Module quiz score for learners using GET /users/{id}/enrollments API
In some specific use cases, admin is required to pull the quiz score for individual modules inside the course and the module names using the API.
We use Admin API :
GET /users/{id}/enrollments
We can fetch the score of the individual modules using relationship “loResourceGrades”
To fetch the details, pass ‘include’ query parameter with loResourceGrades value as part of the enrollment endpoint
Sample request URL :
However, this endpoint does not pull quiz scores from courses that are part of learning paths.
This is possible through learner API only. We do not support this in admin API.
To fetch module score for learning path you can use learningObject endpoint with include {subLOs.enrollment.loResourceGrades}.
The post How to pull Module quiz score for learners using GET /users/{id}/enrollments API appeared first on eLearning.