Grade
course_grade_change
Definition: The event gets emitted anytime any of the course scores are changed for a student.
Trigger: Triggered when anything (a user or asynchronous job) updates the final_score, course_score, unposted_current_score, or unposted_final_score columns in the scores table in the database.
Payload Example:
Event Body Schema
user_id
The Canvas user ID of the student.
course_id
The Canvas ID of the course.
workflow_state
The state of the score record in the database, could be "active" or "deleted".
created_at
The time when the row in the scores table (representing the course grade) was created. The score row is created as a result of some grade calculation, even if there are not yet any graded submissions for a student, i.e. when a student is enrolled in the class.
updated_at
The time when the row in the scores table was last updated -- that is, when the event is emitted.
current_score
The user's current score in the class.
old_current_score
The user's current score in the class before it was changed. This field will not be available until a student submits the first assignment in the class.
final_score
The user's final score for the class.
old_final_score
The user's final score for the class before it was changed. This field will be set to 0.0 until a student submits the first assignment in the class.
unposted_current_score
The user's current grade in the class including unposted assignments.
old_unposted_current_score
The user's current grade in the class including unposted assignments, before it was changed. This field will not be available until a student submits the first assignment in the class.
unposted_final_score
The user's final grade for the class including unposted assignments.
old_unposted_final_score
The user's final grade for the class including unposted assignments, before it was changed. This field will not be available when a student submits the first assignment in the class.
grade_change
Definition: The event is emitted anytime when a submission is graded. These can happen as the result of a teacher changing a grade in the gradebook or speedgrader, a quiz being automatically scored, or changing an assignment's points possible or grade type. In the case of a quiz being scored, the grade_change
event will be emitted as the result of a student turning in a quiz, and the user_id
in the message attributes will be the student's user ID.
Trigger: Triggered anytime a grade is created or modified.
Payload Example:
Event Body Schema
assignment_id
The Canvas id of the assignment associated with the submission.
grade
The new grade.
grader_id
The Canvas id of the user making the grade change. Null if this was the result of automatic grading.
grading_complete
The boolean state that the submission is completely graded. False if the assignment is only partially graded, for example a quiz with automatically and manuall...
muted
The boolean muted state of the submissions's assignment. Muted grade changes should not be published to students.
old_grade
The previous grade, if there was one.
old_points_possible
The maximum points possible for the previous grade.
old_score
The previous score.
points_possible
The maximum points possible for the submission's assignment.
score
The new score.
student_id
Same as the user_id.
student_sis_id
The SIS ID of the student.
submission_id
The Canvas id of the submission that the grade is changing on.
user_id
The Canvas id of the user associated with the submission with the change.
grade_override
Definition: The event is emitted anytime a student course grade is overriden. Typically grade override feature is used to edit student course grade
Trigger: Triggered when the final grade override has been changed. Only triggered when the override changes the existing score.
Payload Example:
Event Body Schema
score_id
Canvas Id of Score record
enrollment_id
Canvas Id of Employment record
user_id
Canvas Id of User attached to this enrollment
course_id
Canvas Id of Course attached to this enrollment
grading_period_id
Canvas Id of Grading Period
override_score
New value of score after override
old_override_score
Previous value of score before override
updated_at
Date/Time the override occurred
This documentation is generated directly from the Canvas LMS source code, available on Github.
Last updated