Pearson
Always Learning

API Group: 

This guide describes the API sequence to review the status of a user completing an exam and the grading results, if any.


API Notes
1. Get the array of exam IDs associated with the user (the user's exam instance IDs) from course items. If the specific exam ID is known, skip this step.

GET /users/{userId}/courses/{courseId}/exams

  • If the specific exam ID is not in the list of returned exam IDs, user did not start the exam or the exam was reset (exam instance was deleted). If this true, this use case is completed.
  • If the specific exam ID is in the list of returned exam IDs, exam instance was created for user.
2. Get user's attempts instance ID (where user's answers were stored) for exam ID.

GET /users/{userId}/courses/{courseId}/exams/{examId}/attempts

  • If there is no attempts ID for the exam ID, then the attempts instance was not created for the user ID. If this true, this use case is completed.
  • If there is an attempts ID for the exam ID, attempts instance was created for user.
3. Get attempts instance summary data.

GET /users/{userId}/courses/{courseId}/exams/{examId}/attempts/{attemptsId}/summary

  • If the HTTP response is "404 Not Found," the user started the exam, but has not completed it.
  • If the attempt summary data is returned, the user completed the exam.
2446 reads
Always Learning
Pearson