Found this content helpful? Log in or sign up to leave a like!

Accessing New Quizzes Reports Not Working

RyanRosario
Community Member

Whenever I try to generate a report for a New Quiz via cURL (as a test), I get back a progress object (as expected) but when I query the Progress object, the status is never "complete." It is always "running." I've been waiting on a student report for over an hour.

In the UI, this takes 5 seconds.

This is the call that I am making in cURL:

curl 'https://bruinlearn.ucla.edu/api/quiz/v1/courses/my_course/quizzes/my_new_quiz/reports'
-X POST
-H 'Authorization: Bearer 'My Token'
-F 'quiz_report[report_type]=student_analysis'
-F 'quiz_report[format]=csv'

Am I doing something wrong or is this a bug?

(I am trying to write a Python script that generates the report, downloads it when it's ready, and then uploads it to Google Sheets)

Labels (1)
0 Likes