Is there an endpoint on Canvas API to retrieve the attempt time for a given submission?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2022
12:53 PM
I'm trying to get the time that a student spent on an attempt. When checking a submission, there's the value on the top that says: This attempt took x minutes.
Is there an endpoint that exposes this information?
Thanks.
Solved! Go to Solution.
1 Solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2022
01:48 PM
Hi @glonghini
The Quiz Submissions API (https://canvas.instructure.com/doc/api/quiz_submissions.html ) returns the time that the student started the attempt, and the time that they submitted the attempt. You would need to calculate the difference between the two in order to get the attempt time.