Grade Change Log API
Query audit log of grade change events.
Only available if the server has configured audit logs; will return 404 Not Found response otherwise.
For each endpoint, a compound document is returned. The primary collection of event objects is paginated, ordered by date descending. Secondary collections of assignments, courses, students and graders related to the returned events are also included. Refer to the Assignment, Courses, and Users APIs for descriptions of the objects in those collections.
A GradeChangeEventLinks object looks like:
{
// ID of the assignment associated with the event
"assignment": 2319,
// ID of the course associated with the event. will match the context_id in the
// associated assignment if the context type for the assignment is a course
"course": 2319,
// ID of the student associated with the event. will match the user_id in the
// associated submission.
"student": 2319,
// ID of the grader associated with the event. will match the grader_id in the
// associated submission.
"grader": 2319,
// ID of the page view during the event if it exists.
"page_view": "e2b76430-27a5-0131-3ca1-48e0eb13f29b"
}
A GradeChangeEvent object looks like:
{
// ID of the event.
"id": "e2b76430-27a5-0131-3ca1-48e0eb13f29b",
// timestamp of the event
"created_at": "2012-07-19T15:00:00-06:00",
// GradeChange event type
"event_type": "grade_change",
// Boolean indicating whether the submission was excused after the change.
"excused_after": true,
// Boolean indicating whether the submission was excused before the change.
"excused_before": false,
// The grade after the change.
"grade_after": "8",
// The grade before the change.
"grade_before": "8",
// Boolean indicating whether the student name was visible when the grade was
// given. Could be null if the grade change record was created before this feature
// existed.
"graded_anonymously": true,
// Version Number of the grade change submission.
"version_number": "1",
// The unique request id of the request during the grade change.
"request_id": "e2b76430-27a5-0131-3ca1-48e0eb13f29b",
"links": null
}
Query by assignment. GradeChangeAuditApiController#for_assignment
GET /api/v1/audit/grade_change/assignments/:assignment_id
List grade change events for a given assignment.
Request Parameters:
Parameter | Type | Description | |
---|---|---|---|
start_time | DateTime |
The beginning of the time range from which you want events. |
|
end_time | DateTime |
The end of the time range from which you want events. |
Query by course. GradeChangeAuditApiController#for_course
GET /api/v1/audit/grade_change/courses/:course_id
List grade change events for a given course.
Request Parameters:
Parameter | Type | Description | |
---|---|---|---|
start_time | DateTime |
The beginning of the time range from which you want events. |
|
end_time | DateTime |
The end of the time range from which you want events. |
Query by student. GradeChangeAuditApiController#for_student
GET /api/v1/audit/grade_change/students/:student_id
List grade change events for a given student.
Request Parameters:
Parameter | Type | Description | |
---|---|---|---|
start_time | DateTime |
The beginning of the time range from which you want events. |
|
end_time | DateTime |
The end of the time range from which you want events. |
Query by grader. GradeChangeAuditApiController#for_grader
GET /api/v1/audit/grade_change/graders/:grader_id
List grade change events for a given grader.
Request Parameters:
Parameter | Type | Description | |
---|---|---|---|
start_time | DateTime |
The beginning of the time range from which you want events. |
|
end_time | DateTime |
The end of the time range from which you want events. |