How to use Rubric Endpoint to update grade of a specific assignment's Rubric Assesment #617
-
Hi, I was digging around and noticed some resolved issues showing that an endpoint has been made for all the Rubric functionality in the Canvas API. I was wondering if I could get some help actually using this endpoint? At the moment I can get the Assignment ID (and all submissions to that assignment) and the relevant Rubric ID, but I'm not sure how to get the actual Rubric Assessment that each submission is currently using, so I can update the columns correctly. For context, the assignments are already linked to Rubrics on Canvas, and there have already been submissions before. I don't want to make a new Rubric Assessment, I'd like to update the scores of the existing submissions' Rubric assessment, specifically the points value of rubric item "Fundamental Skills 1" Using the documentation at https://canvas.instructure.com/doc/api/submissions.html#method.submissions_api.update to find the relevant kwargs, this is where I'm at code-wise. I get the error:
Thanks for this wonderful library! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hey @Volan360, At a glance, your code looks mostly correct. The only weird thing about the |
Beta Was this translation helpful? Give feedback.
Adding to @Thetwam, to get the rubric assessments, you need to use the
include=['rubric_assessments']
keyword when you're getting your submissions.The outermost ID is the
RubricAssociation
ID you can use to get the rubric itself if you want to. Each object in the association is a row on the rubric, so you might also need some logic to check that you're updating the correct row.Rubrics are tricky in Canvas because they're nested so deeply. Criterion a…