AnsweredAssumed Answered

quiz submission update api - missing key ":quiz_submissions"

Question asked by Adesh Kumar on Aug 19, 2019
Latest reply on Aug 22, 2019 by Adesh Kumar



I've been trying to figure out how to update a students quiz grade through CanvasAPI. I keep getting this error: 


missing required key :quiz_submissions

I don't know what it means and I can't figure out what about my script to change to make this work. any ideas?


def updateGrade():
    uri = url +'41' + '/quizzes/235/submissions/73'
    record = {
        "quiz_submissions[][fudge_points]" : -3.4

    r = requests.put(uri, headers = headers, data=ques)
    jsonData = r.json()
    print(json.dumps(jsonData, indent=4))