Answering questions (Quiz submission API)

Jump to solution
damariszg
Community Novice

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_toke...

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?

Labels (1)
0 Likes
1 Solution
dgrobani
Community Champion

In your URL, the first instance of "access" appears to be missing an "s."

View solution in original post