How can I grab a Canvas Course Marks export csv file via API? It is not presently clear to me from the documentation.
You don't get the CSV through the API. See Export Individual Course Gradebook Via API for more information and alternatives.
Thank you for your response.
Are you implying that there is no API endpoint for the Marks export csv currently? We do not presently need any custom columns for instance, the stock csv is suited to our purposes; we just need a way to automatically pull the file on a recurring basis.
There is no API endpoint to export the gradebook CSV.
The call to get the gradebook CSV is a non-API call. It starts with a call to /courses/12345/gradebook_csv. This starts the gradebook generation process with an attachment_id and a progress_id. Canvas polls the progress API to determine when it is done. It repeats this call until it's finished and then it downloads the gradebook using an API call.
But the initial call that gets everything started is not an API call.
It appears that you do not have to be on the gradebook page to invoke the call. This means that you could write a script that logs into Canvas and sends the calls to start the generation of the CSV file and then do the rest from the API.
Retrieving data ...