Error creating RubricAssessment via the Canvas API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2021
12:07 PM
I am having trouble submitting a RubricAssessment via the Canvas API. I am following this Create a single rubric assessment API doc. Below is what I have attempted along with example data and error message. What is wrong with my RubricAssessment POST?
GET /api/v1/courses/1022/rubrics/500?include[]=associations
Response(contains the RurbricAssociation id and Criterion ids needed to create RubricAssessment)
{
id: 500,
context_id: 1022,
context_type: 'Course',
data: [
{
description: 'Student can clearly communicate...',
points: 3,
id: '_340',
criterion_use_range: false,
long_description: '<p> Desc...</p>',
learning_outcome_id: 6379,
mastery_points: 2,
ignore_for_scoring: false,
ratings: [Array]
},
{
description: 'Student can clearly articulate their collaboration',
points: 3,
id: '_2874',
criterion_use_range: false,
long_description: '<p><b>1</b>: Long desc...</p>',
learning_outcome_id: 6378,
mastery_points: 2,
ignore_for_scoring: false,
ratings: [Array]
},
{
description: 'Student publishes a clearly articulated...',
points: 3,
id: '_2311',
criterion_use_range: false,
long_description: "<p>Long desc...</p>\n",
learning_outcome_id: 6380,
mastery_points: 2,
ignore_for_scoring: false,
ratings: [Array]
}
],
points_possible: 9,
title: 'Sprint Challenge 2 Rubric',
reusable: false,
public: false,
read_only: false,
free_form_criterion_comments: true,
hide_score_total: null,
associations: [
{
id: 750,
rubric_id: 500,
association_id: 18647,
association_type: 'Assignment',
use_for_grading: true,
summary_data: null,
purpose: 'grading',
hide_score_total: false,
hide_points: false,
hide_outcome_results: false
}
]
}
POST to : /api/v1/courses/1022/rubric_associations/750/rubric_assessments (1022 is a course, 750 is a rubric_association)
Request Payload:
{
"rubric_assessment": {
"course_id": 1022,
"rubric_association_id": 750,
"rubric_assessment": {
"user_id": 1934,
"assessment_type": "grading",
"criterion_340": { "points": 2, "comments": "Test comment 1" },
"criterion_2874": { "points": 2, "comments": "Test comment 2" },
"criterion_2311": { "points": 2, "comments": "Test comment 3" }
}
}
}
Response:
{"errors":[{"message":"The specified resource does not exist."}]}
Solved! Go to Solution.