AnsweredAssumed Answered

Answering questions (Quiz submission API)

Question asked by Damaris Zarco on Nov 13, 2015
Latest reply on Nov 13, 2015 by Daniel Grobani

I cannot figure out how to submit an answer to a question using this API: Quiz Submission Questions - Canvas LMS REST API Documentation

 

I have created my request (I'm using guzzle) like so:

 

URL:

 

https://my_domain/api/v1/quiz_submissions/my_quiz_submission_id/questions?acces_token=my_access_token

 

POST parameters:

 

{

  "attempt": "1",

  "validation_token": "my_validation_token",

  "quiz_questions": [

  {

  "id": "my_question_id",

  "answer": 1

  }

  ]

}

 

I keep getting a 403 Forbidden error

Any ideas of what I may be missing?

Outcomes