AnsweredAssumed Answered

Quiz question created by api

Question asked by Kimm@ag-risk.org on Jul 25, 2016
Latest reply on Nov 25, 2016 by PJ

Using access token, I am able to GET the quiz questions but cannot POST.

For GET, the api call is GET /api/v1/courses/:course_id/quizzes/:quiz_id/questions/:id

For POST, the api call is POST /api/v1/courses/:course_id/quizzes/:quiz_id/questions

 

The data that I send is very simple:  {"question_name":"Test import"} , not the whole object.  The id increases but the value that I get back is not the value that I send.  It seems the default value:  "question_name":"Question".

My api call is POST /api/v1/courses/:course_id/quizzes/:quiz_id/questions?access_token=Mytoken.

 

I am using C# and so far, I can't figure out what's wrong.  I used fiddler and other api tools like Postman and ARC to test the POST and it's always back with the default value.

 

NOTE: The test LIVE! API tool of Canvas is successful to create a quiz question by api but from my site I can't

Outcomes