August 22, 2023
How to pull Module quiz score for learners using GET /users/{id}/enrollments API
Comments
(0)
August 22, 2023
How to pull Module quiz score for learners using GET /users/{id}/enrollments API
(0)

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 :

https://learningmanager.adobe.com/primeapi/v2/users/7546252/enrollments?include=loResourceGrades&page[limit]=10&filter.loTypes=course&sort=dateEnrolled

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}.

https://learningmanager.adobe.com/primeapi/v2/learningObjects/learningProgram%3A69608?include=subLOs.enrollment.loResourceGrades

0 Comments
Add Comment