Table of Contents
Grades are point values assigned to users for a specific assignment through enrollments.
Fields
Field | Name | Description | Type | Required |
---|---|---|---|---|
enrollment_id | Enrollment ID | The ID of the enrollment for which you are assigning a grade | integer | yes |
assignment_id | Assignment ID | The ID of the assignment for which you are assigning a grade | string | yes |
grade | Grade | The grade you are assigning the enrollment/assignment combination. Assignments with an assigned grading scale can accept letter-grades as defined by the scale - these will be converted to numeric values upon save. | integer or string | yes |
exception | Exception | An exception represents an exception to the grade item associated with this grade. If exception > 0 then grade will be set to NULL. Right now the only exceptions that exist are 1 for ‘excused’ & 2 for ‘incomplete’. | integer | |
comment | Comment | A comment to associate with this grade | string | |
timestamp | Timestamp | The Unix timestamp the last time the grade was updated in any way, according to the server time | integer | |
is_final | Is Final | Whether or the grade object belongs to a midterm/final. | integer {0,1} | |
type | Type | This is the type of grade item this grade refers to | string {assignment, discussion} | |
location | API location | This points to an API endpoint where the specific content this grade refers to can be found. Important that now there are assignments and discussions, meaning endpoints are not the same. | string |
Operations
list
View a list of grades (paged). The following query strings can (optionally) be appended to the path to filter results:
- assignment_id: filter grades for a given assignment
- enrollment_id: filter grades for a given enrollment
- timestamp: return only grades that have been changed since the given timestamp, according to the server time.
Retrieving this list without specifying the above parameters will return a paged list of all grades for all assignments and students in the course section.
Path | |
Content | none |
Return | A collection of grade objects, each one containing grade fields JSON XML
|
list
View a list of grades (paged) for a given user. Append the following query strings to the path to filter results:
- section_id: filter grades for a given course section. Required
- timestamp: return only grades that have been changed since the given timestamp, according to the server time. Optional
Retrieving this list without specifying the section_id parameter returns a 403 Forbidden error.
Retrieving this list without specifying the timestamp parameter returns all grades for all assignments and course sections, and for the section indicated by the section_id parameter.
Path | |
Content | none |
Return | A collection of grade objects, each one containing grade fields JSON XML
|
update
Set/modify grades
Path | |
Content | Objects containing grade fields JSON XML
|
Return | none |
update final comments
Set/modify comments for students for a grading period and the overall course
Path | | |||||||||||||||||||||||||
Content | Objects containing final comments fields
XML
| |||||||||||||||||||||||||
Return | none |