Rubrics
API for accessing rubric information.
A Rubric object looks like:
A RubricCriterion object looks like:
A RubricRating object looks like:
A RubricAssessment object looks like:
A RubricAssociation object looks like:
POST /api/v1/courses/:course_id/rubrics
POST /api/v1/courses/:course_id/rubrics
Scope: url:POST|/api/v1/courses/:course_id/rubrics
Returns the rubric with the given id.
Unfortuantely this endpoint does not return a standard Rubric object, instead it returns a hash that looks like
This may eventually be deprecated in favor of a more standardized return value, but that is not currently planned.
Request Parameters:
Parameter | Type | Description |
---|---|---|
|
| The id of the rubric |
|
| The id of the object with which this rubric is associated |
|
| The title of the rubric |
|
| Whether or not you can write custom comments in the ratings field for a rubric |
|
| The id of the object with which this rubric is associated |
|
| The type of object this rubric is associated with Allowed values: |
|
| Whether or not the associated rubric is used for grade calculation |
|
| Whether or not the score total is displayed within the rubric. This option is only available if the rubric is not used for grading. |
|
| Whether or not the association is for grading (and thus linked to an assignment) or if it’s to indicate the rubric should appear in its context |
|
| An indexed Hash of RubricCriteria objects where the keys are integer ids and the values are the RubricCriteria objects |
PUT /api/v1/courses/:course_id/rubrics/:id
PUT /api/v1/courses/:course_id/rubrics/:id
Scope: url:PUT|/api/v1/courses/:course_id/rubrics/:id
Returns the rubric with the given id.
Unfortuantely this endpoint does not return a standard Rubric object, instead it returns a hash that looks like
This may eventually be deprecated in favor of a more standardized return value, but that is not currently planned.
Request Parameters:
Parameter | Type | Description |
---|---|---|
|
| The id of the rubric |
|
| The id of the object with which this rubric is associated |
|
| The title of the rubric |
|
| Whether or not you can write custom comments in the ratings field for a rubric |
|
| Whether or not to update the points possible |
|
| The id of the object with which this rubric is associated |
|
| The type of object this rubric is associated with Allowed values: |
|
| Whether or not the associated rubric is used for grade calculation |
|
| Whether or not the score total is displayed within the rubric. This option is only available if the rubric is not used for grading. |
|
| Whether or not the association is for grading (and thus linked to an assignment) or if it’s to indicate the rubric should appear in its context Allowed values: |
|
| An indexed Hash of RubricCriteria objects where the keys are integer ids and the values are the RubricCriteria objects |
DELETE /api/v1/courses/:course_id/rubrics/:id
DELETE /api/v1/courses/:course_id/rubrics/:id
Scope: url:DELETE|/api/v1/courses/:course_id/rubrics/:id
Deletes a Rubric and removes all RubricAssociations.
Returns a Rubric object.
GET /api/v1/accounts/:account_id/rubrics
GET /api/v1/accounts/:account_id/rubrics
Scope: url:GET|/api/v1/accounts/:account_id/rubrics
GET /api/v1/courses/:course_id/rubrics
GET /api/v1/courses/:course_id/rubrics
Scope: url:GET|/api/v1/courses/:course_id/rubrics
Returns the paginated list of active rubrics for the current context.
GET /api/v1/accounts/:account_id/rubrics/:id
GET /api/v1/accounts/:account_id/rubrics/:id
Scope: url:GET|/api/v1/accounts/:account_id/rubrics/:id
GET /api/v1/courses/:course_id/rubrics/:id
GET /api/v1/courses/:course_id/rubrics/:id
Scope: url:GET|/api/v1/courses/:course_id/rubrics/:id
Returns the rubric with the given id.
Request Parameters:
Parameter | Type | Description |
---|---|---|
|
| Related records to include in the response. Allowed values: |
|
| Applicable only if assessments are being returned. If included, returns either all criteria data associated with the assessment, or just the comments. If not included, both data and comments are omitted. Allowed values: |
Returns a Rubric object.
RubricsApiController#used_locations
GET /api/v1/courses/:course_id/rubrics/:id/used_locations
GET /api/v1/courses/:course_id/rubrics/:id/used_locations
Scope: url:GET|/api/v1/courses/:course_id/rubrics/:id/used_locations
GET /api/v1/accounts/:account_id/rubrics/:id/used_locations
GET /api/v1/accounts/:account_id/rubrics/:id/used_locations
Scope: url:GET|/api/v1/accounts/:account_id/rubrics/:id/used_locations
Returns the rubric with the given id.
POST /api/v1/courses/:course_id/rubrics/upload
POST /api/v1/courses/:course_id/rubrics/upload
Scope: url:POST|/api/v1/courses/:course_id/rubrics/upload
POST /api/v1/accounts/:account_id/rubrics/upload
POST /api/v1/accounts/:account_id/rubrics/upload
Scope: url:POST|/api/v1/accounts/:account_id/rubrics/upload
Returns the rubric import object that was created
RubricsApiController#upload_template
GET /api/v1/rubrics/upload_template
GET /api/v1/rubrics/upload_template
Scope: url:GET|/api/v1/rubrics/upload_template
RubricsApiController#upload_status
GET /api/v1/courses/:course_id/rubrics/upload/:id
GET /api/v1/courses/:course_id/rubrics/upload/:id
Scope: url:GET|/api/v1/courses/:course_id/rubrics/upload/:id
GET /api/v1/accounts/:account_id/rubrics/upload/:id
GET /api/v1/accounts/:account_id/rubrics/upload/:id
Scope: url:GET|/api/v1/accounts/:account_id/rubrics/upload/:id
Can return the latest rubric import for an account or course, or a specific import by id
RubricAssessmentsController#create
POST /api/v1/courses/:course_id/rubric_associations/:rubric_association_id/rubric_assessments
POST /api/v1/courses/:course_id/rubric_associations/:rubric_association_id/rubric_assessments
Scope: url:POST|/api/v1/courses/:course_id/rubric_associations/:rubric_association_id/rubric_assessments
Returns the rubric assessment with the given id. The returned object also provides the information of
Request Parameters:
Parameter | Type | Description |
---|---|---|
|
| The id of the course |
|
| The id of the object with which this rubric assessment is associated |
|
| (optional) Indicates whether this assessment is provisional, defaults to false. |
|
| (optional) Indicates a provisional grade will be marked as final. It only takes effect if the provisional param is passed as true. Defaults to false. |
|
| (optional) Defaults to false |
|
| A Hash of data to complement the rubric assessment: The user id that refers to the person being assessed
Assessment type. There are only three valid types: ‘grading’, ‘peer_review’, or ‘provisional_grade’
The points awarded for this row.
Comments to add for this row.
For each criterion_id, change the id by the criterion number, ex: criterion_123 If the criterion_id is not specified it defaults to false, and nothing is updated. |
RubricAssessmentsController#update
PUT /api/v1/courses/:course_id/rubric_associations/:rubric_association_id/rubric_assessments/:id
PUT /api/v1/courses/:course_id/rubric_associations/:rubric_association_id/rubric_assessments/:id
Scope: url:PUT|/api/v1/courses/:course_id/rubric_associations/:rubric_association_id/rubric_assessments/:id
Returns the rubric assessment with the given id. The returned object also provides the information of
Request Parameters:
Parameter | Type | Description |
---|---|---|
|
| The id of the rubric assessment |
|
| The id of the course |
|
| The id of the object with which this rubric assessment is associated |
|
| (optional) Indicates whether this assessment is provisional, defaults to false. |
|
| (optional) Indicates a provisional grade will be marked as final. It only takes effect if the provisional param is passed as true. Defaults to false. |
|
| (optional) Defaults to false |
|
| A Hash of data to complement the rubric assessment: The user id that refers to the person being assessed
Assessment type. There are only three valid types: ‘grading’, ‘peer_review’, or ‘provisional_grade’
The points awarded for this row.
Comments to add for this row.
For each criterion_id, change the id by the criterion number, ex: criterion_123 If the criterion_id is not specified it defaults to false, and nothing is updated. |
RubricAssessmentsController#destroy
DELETE /api/v1/courses/:course_id/rubric_associations/:rubric_association_id/rubric_assessments/:id
DELETE /api/v1/courses/:course_id/rubric_associations/:rubric_association_id/rubric_assessments/:id
Scope: url:DELETE|/api/v1/courses/:course_id/rubric_associations/:rubric_association_id/rubric_assessments/:id
Deletes a rubric assessment
Returns a RubricAssessment object.
RubricAssociationsController#create
POST /api/v1/courses/:course_id/rubric_associations
POST /api/v1/courses/:course_id/rubric_associations
Scope: url:POST|/api/v1/courses/:course_id/rubric_associations
Returns the rubric with the given id.
Request Parameters:
Parameter | Type | Description |
---|---|---|
|
| The id of the Rubric |
|
| The id of the object with which this rubric is associated |
|
| The type of object this rubric is associated with Allowed values: |
|
| The name of the object this rubric is associated with |
|
| Whether or not the associated rubric is used for grade calculation |
|
| Whether or not the score total is displayed within the rubric. This option is only available if the rubric is not used for grading. |
|
| Whether or not the association is for grading (and thus linked to an assignment) or if it’s to indicate the rubric should appear in its context Allowed values: |
|
| Whether or not the associated rubric appears in its context |
Returns a RubricAssociation object.
RubricAssociationsController#update
PUT /api/v1/courses/:course_id/rubric_associations/:id
PUT /api/v1/courses/:course_id/rubric_associations/:id
Scope: url:PUT|/api/v1/courses/:course_id/rubric_associations/:id
Returns the rubric with the given id.
Request Parameters:
Parameter | Type | Description |
---|---|---|
|
| The id of the RubricAssociation to update |
|
| The id of the Rubric |
|
| The id of the object with which this rubric is associated |
|
| The type of object this rubric is associated with Allowed values: |
|
| The name of the object this rubric is associated with |
|
| Whether or not the associated rubric is used for grade calculation |
|
| Whether or not the score total is displayed within the rubric. This option is only available if the rubric is not used for grading. |
|
| Whether or not the association is for grading (and thus linked to an assignment) or if it’s to indicate the rubric should appear in its context Allowed values: |
|
| Whether or not the associated rubric appears in its context |
Returns a RubricAssociation object.
RubricAssociationsController#destroy
DELETE /api/v1/courses/:course_id/rubric_associations/:id
DELETE /api/v1/courses/:course_id/rubric_associations/:id
Scope: url:DELETE|/api/v1/courses/:course_id/rubric_associations/:id
Delete the RubricAssociation with the given ID
Returns a RubricAssociation object.
© Instructure, Inc. Generated on Wed Nov 6 14:20:09 2024 This documentation is generated directly from the Canvas LMS source code, available on Github.
Last updated