Celebrate Excellence in Education: Nominate Outstanding Educators by April 15!
Found this content helpful? Log in or sign up to leave a like!
I've got something going smoothly to output generated report csv links via the API which works when there is already a report generated. When I look at the API, it seems like to generate a report I would need to use a post request but I'm not sure if that's accurate. The only way I've been able to get it to work is by going in and manually generating the report in the course itself, which is underwhelming to say the least.
Thanks!
Hi,
for me this is working with a POST request to this url:
{{base_url}}/api/v1/courses/XXX/quizzes/XXX/reports?quiz_report[report_type]=student_analysis&include=[file],
which returns a url which returns a download url for the report.
Thank you, that confirms I'm at least sending the right request. I'm getting an 500 error for some reason. I went specifically for a course that didn't have reports generated yet, hoping that this would do that so I could automate it going forward. Having to touch each quiz in each class has been a unwelcome time suck.
When I run a GET request it works fine. It will download reports for all of the classes I've already gone in and generated the report for manually through the canvas site.
To participate in the Instructure Community, you need to sign up or log in:
Sign In