I have several assignments setup where the student will not actually submit anything through Canvas. If I am using the web GUI I can easily add a grade to such an assignment, the student does not need to have submitted anything. However, when I am trying to add a grade through the API I get an error. I am attempting
PUT: https://canvas.instructure.com/api/v1/courses/[course id]/assignments/[assignment id]/submissions/[student id]
Body:
{ "submission":{
"posted_grade": 10
}
}
However, I get the following:
{"errors":[{"message":"The specified resource does not exist."}],"error_report_id":"60780000000096536"}
If I try this same process on a student who has submitted something, it works just fine.
How can I simply assign a grade to an assignment? (without a submission)