Skip to main content

assignment_grades

Creates, updates, deletes, gets or lists an assignment_grades resource.

Overview​

Nameassignment_grades
TypeResource
Idgithub.classroom.assignment_grades

Fields​

The following fields are returned by SELECT queries:

Response

NameDatatypeDescription
assignment_namestringName of the assignment
group_namestringIf a group assignment, name of the group the student is in
student_repository_namestringName of the student's assignment repository
assignment_urlstringURL of the assignment
github_usernamestringGitHub username of the student
points_availableintegerNumber of points available for the assignment
points_awardedintegerNumber of points awarded to the student
roster_identifierstringRoster identifier of the student
starter_code_urlstringURL of the starter code for the assignment
student_repository_urlstringURL of the student's assignment repository
submission_timestampstringTimestamp of the student's assignment submission

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_assignment_gradesselectassignment_id> [!WARNING]
> Closing down notice: This operation is closing down and will be removed on August 28, 2026.
> For more information, see the GitHub Classroom sunset notice.

Gets grades for a GitHub Classroom assignment. Grades will only be returned if the current user is an administrator of the GitHub Classroom for the assignment.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
assignment_idintegerThe unique identifier of the classroom assignment.

SELECT examples​

> [!WARNING]
> Closing down notice: This operation is closing down and will be removed on August 28, 2026.
> For more information, see the GitHub Classroom sunset notice.

Gets grades for a GitHub Classroom assignment. Grades will only be returned if the current user is an administrator of the GitHub Classroom for the assignment.

SELECT
assignment_name,
group_name,
student_repository_name,
assignment_url,
github_username,
points_available,
points_awarded,
roster_identifier,
starter_code_url,
student_repository_url,
submission_timestamp
FROM github.classroom.assignment_grades
WHERE assignment_id = '{{ assignment_id }}' -- required
;