Skip to content

How to use Rubric Endpoint to update grade of a specific assignment's Rubric Assesment #617

Answered by bennettscience
Volan360 asked this question in Q&A
Discussion options

You must be logged in to vote

Adding to @Thetwam, to get the rubric assessments, you need to use the include=['rubric_assessments'] keyword when you're getting your submissions.

submissions = assignment.get_submissions(include=['rubric_assessments'])
submissions[0].rubric_assessment

"""
{ 
    '_1234': {
        'rating_id': '_5678',
        'comments': 'Some string',
        'points': 5.0
    },
    { ...},
}
"""

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…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@bennettscience
Comment options

Answer selected by Volan360
@Volan360
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants