Curl request to start a report

gtoney
Community Member

How do I make a curl request to start an account report?  specifically grade export.  I have tried all kinds of things but nothing will start the report.  here is my last thing I tried.  I thought by the documentation when it says 

POST /api/v1/accounts/:account_id/reports/:report

my curl request should be this:

curl  -H "Authorization: Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" "https://emmanuelcollege.instructure.com/api/v1/accounts/1/reports/grade_export_csv"

All I get is a bunch of json data back but the report is not showing up inside Canvas as running.  I don't completely understand how this all works and I read other post about starting a report but I haven't seen exactly how to do it with curl.

Glenn Toney

Emmanuel College

Director of IT

0 Likes