AnsweredAssumed Answered

Canvas Quiz API cURL POST call

Question asked by Glenn Downing on Oct 14, 2017
Latest reply on Oct 18, 2017 by Glenn Downing

I've successfully used a cURL GET call to get a quiz:

 

    curl https://utexas.instructure.com/api/v1/courses/1202012/quizzes/1174911 \
    -H "Authorization: Bearer <access token>"

 

I'm now trying to use a cURL POST call to create a quiz:

 

    curl https://utexas.instructure.com/api/v1/courses/1202012/quizzes \
    -d '{"title": "Quiz #25"}' \
    -H 'Content-Type: application/json' \
    -H 'Authorization: Bearer <access token>'

 

but that call results in:

 

    {"errors":{}}

 

Is my cURL POST call malformed?

 

In the Canvas Quiz API documentation the only required request parameter is quiz[title], which I am specifying.

Outcomes