{
// the ID of the outcome
"id": 1,
// the URL for fetching/updating the outcome. should be treated as opaque
"url": "/api/v1/outcomes/1",
// the context owning the outcome. may be null for global outcomes
"context_id": 1,
"context_type": "Account",
// title of the outcome
"title": "Outcome title",
// Optional friendly name for reporting
"display_name": "My Favorite Outcome",
// description of the outcome. omitted in the abbreviated form.
"description": "Outcome description",
// A custom GUID for the learning standard.
"vendor_guid": "customid9000",
// maximum points possible. included only if the outcome embeds a rubric
// criterion. omitted in the abbreviated form.
"points_possible": 5,
// points necessary to demonstrate mastery outcomes. included only if the
// outcome embeds a rubric criterion. omitted in the abbreviated form.
"mastery_points": 3,
// the method used to calculate a students score
"calculation_method": "decaying_average",
// this defines the variable value used by the calculation_method. included only
// if calculation_method uses it
"calculation_int": 65,
// possible ratings for this outcome. included only if the outcome embeds a
// rubric criterion. omitted in the abbreviated form.
"ratings": null,
// whether the current user can update the outcome
"can_edit": true,
// whether the outcome can be unlinked
"can_unlink": true,
// whether this outcome has been used to assess a student
"assessed": true,
// whether updates to this outcome will propagate to unassessed rubrics that
// have imported it
"has_updateable_rubrics": true
}{
// the id of the aligned learning outcome.
"id": 1,
// the id of the aligned assignment (null for live assessments).
"assignment_id": 2,
// the id of the aligned live assessment (null for assignments).
"assessment_id": 3,
// a string representing the different submission types of an aligned
// assignment.
"submission_types": "online_text_entry,online_url",
// the URL for the aligned assignment.
"url": "/courses/1/assignments/5",
// the title of the aligned assignment.
"title": "Unit 1 test"
}curl 'https://<canvas>/api/v1/outcomes/1.json' \
-X PUT \
-F 'title=Outcome Title' \
-F 'display_name=Title for reporting' \
-F 'description=Outcome description' \
-F 'vendor_guid=customid9001' \
-F 'mastery_points=3' \
-F 'calculation_method=decaying_average' \
-F 'calculation_int=65' \
-F 'ratings[][description]=Exceeds Expectations' \
-F 'ratings[][points]=5' \
-F 'ratings[][description]=Meets Expectations' \
-F 'ratings[][points]=3' \
-F 'ratings[][description]=Does Not Meet Expectations' \
-F 'ratings[][points]=0' \
-F 'ratings[][points]=0' \
-H "Authorization: Bearer <token>"curl 'https://<canvas>/api/v1/outcomes/1.json' \
-X PUT \
--data-binary '{
"title": "Outcome Title",
"display_name": "Title for reporting",
"description": "Outcome description",
"vendor_guid": "customid9001",
"mastery_points": 3,
"ratings": [
{ "description": "Exceeds Expectations", "points": 5 },
{ "description": "Meets Expectations", "points": 3 },
{ "description": "Does Not Meet Expectations", "points": 0 }
]
}' \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <token>"