Hello,
I'm trying to use the Canvas API to give all of my students a grade for their quizzes. I was able to update the grades, but I want to give a value to those that didn't take the quiz. With the update I have a submission ID which is were I update their grade with fudge. However, those that didn't take the quiz don't have a submission ID. Is there a way to give them a grade even thought they don't have a submission ID?
Thank you in advance
Adesh,
This represents a misunderstanding of how submissions work. There is a submission ID even if there is no submission. The problem is that you don't know easily know what it is from the web interface. If you use the Submissions API, you can get those IDs.
The good news is that you don't need to know the submission ID in order to give a grade.
Use the Grade or comment on a submission or Grade or comment on multiple submissions endpoints of the Submissions API to assign grades. To use these endpoints, you need to know the course ID, assignment ID, and user (student) ID, but not the Submission ID.
From the description of what you're trying to accomplish, it sounds like you would want the multiple submissions version so you can update all the student grades with a single API call.