What If Grades
Welcome to Our New API Docs! This is the new home for all things API (previously at Canvas LMS REST API Documentation).
What If Grades API
A Grade object looks like:
{
// The grade for the course
"grade": 120.0,
// The total points earned in the course
"total": 24.0,
// The total points possible for the course
"possible": 20.0,
// The dropped grades for the course
"dropped": []
}An AssignmentGroupGrade object looks like:
{
// The ID of the Assignment Group
"id": 123,
// The global ID of the Assignment Group
"global_id": 10000000000001,
// The score for the Assignment Group
"score": 20.0,
// The total points possible for the Assignment Group
"possible": 10.0,
// The weight for the Assignment Group
"weight": 0.0,
// The grade for the Assignment Group
"grade": 200.0,
// The dropped grades for the Assignment Group
"dropped": []
}A GradeGroup object looks like:
A Grades object looks like:
A Submission object looks like:
WhatIfGradesApiController#update
PUT /api/v1/submissions/:id/what_if_grades
Scope: url:PUT|/api/v1/submissions/:id/what_if_grades
Enter a what if score for a submission and receive the calculated grades Grade calculation is a costly operation, so this API should be used sparingly
Request Parameters:
student_entered_score
number
The score the student wants to test
Example Response:
Returns a list of Grades objects.
WhatIfGradesApiController#reset_for_student_course
PUT /api/v1/courses/:course_id/what_if_grades/reset
Scope: url:PUT|/api/v1/courses/:course_id/what_if_grades/reset
Resets all what-if scores for a student in a course and recalculates grades.
Returns a list of Grades objects.
This documentation is generated directly from the Canvas LMS source code, available on Github.
Last updated
Was this helpful?