AnsweredAssumed Answered

Curl request to start a report

Question asked by Glenn Toney on Aug 30, 2017
Latest reply on Jan 23, 2018 by rogrant@nmsu.edu

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

Outcomes