For Developers
Update Rubric
PATCH https://ed.link/api/v2/graph/classes/:class_id/rubrics/:rubric_id
Update an existing Rubric in the given Class.
Request Parameters
Parameter | Type | Description |
---|---|---|
class_id | string | The UUID of the desired Class. |
rubric_id | string | The UUID of the desired Rubric to update. |
Request Body
The request body should contain a partial Rubric object.
The following fields are allowed: title
, grading_criteria
.
{
"grading_criteria": [
{
"name": "first",
"description": "some details",
"performance_levels": [
{
"name": "good",
"points": 3
},
{
"name": "bad",
"points": 1
}
]
},
{
"name": "second",
"description": "2nd description",
"performance_levels": [
{
"name": "good",
"points": 3
},
{
"name": "bad",
"points": 1
}
]
}
]
}
Sample Request
axios.patch('https://ed.link/api/v2/graph/classes/00000000-0000-0000-0000-000000000000/rubrics/00000000-0000-0000-0000-000000000000', {
headers: {
authorization: `Bearer ${integration_access_token}`
},
data: {
grading_criteria: [
{
name: 'first',
description: 'some details',
performance_levels: [
{
name: 'good',
points: 3
},
{
name: 'bad',
points: 1
}
]
},
{
name: 'second',
description: '2nd description',
performance_levels: [
{
name: 'good',
points: 3
},
{
name: 'bad',
points: 1
}
]
}
]
}
});
Sample Response
The response contains the full newly updated Rubric object.
{
"$data": {
"title": "My api-created rubric",
"description": "my rubric description",
"grading_criteria": [
{
"name": "first",
"description": "some details",
"performance_levels": [
{
"name": "good",
"points": 3
},
{
"name": "bad",
"points": 1
}
]
},
{
"name": "second",
"description": "2nd description",
"performance_levels": [
{
"name": "good",
"points": 3
},
{
"name": "bad",
"points": 1
}
]
}
]
},
"$request": "00000000-0000-0000-0000-000000000000"
}
Supported Providers
- canvas