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 \
    -H "Authorization: Bearer <access token>"


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


    curl \
    -d '{"title": "Quiz #25"}' \
    -H 'Content-Type: application/json' \
    -H 'Authorization: Bearer <access token>'


but that call results in:




Is my cURL POST call malformed?


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