Closing down - List accepted assignments for an assignment
[!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.
Lists any assignment repositories that have been created by students accepting a GitHub Classroom assignment. Accepted assignments will only be returned if the current user is an administrator of the GitHub Classroom for the assignment.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”The unique identifier of the classroom assignment.
Query Parameters
Section titled “ Query Parameters ”The page number of the results to fetch. For more information, see “Using pagination in the REST API.”
The number of results per page (max 100). For more information, see “Using pagination in the REST API.”
Responses
Section titled “ Responses ”Response
A GitHub Classroom accepted assignment
object
Unique identifier of the repository.
Whether an accepted assignment has been submitted.
Whether a submission passed.
Count of student commits.
Most recent grade.
A GitHub user simplified for Classroom.
object
A GitHub repository view for Classroom
object
A unique identifier of the repository.
The full, globally unique name of the repository.
The URL to view the repository on GitHub.com.
The GraphQL identifier of the repository.
Whether the repository is private.
The default branch for the repository.
A GitHub Classroom assignment
object
Unique identifier of the repository.
Whether an accepted assignment creates a public repository.
Assignment title.
Whether it’s a Group Assignment or Individual Assignment.
The link that a student can use to accept the assignment.
Whether the invitation link is enabled. Visiting an enabled invitation link will accept the assignment.
Sluggified name of the assignment.
Whether students are admins on created repository on accepted assignment.
Whether feedback pull request will be created on assignment acceptance.
The maximum allowable teams for the assignment.
The maximum allowable members per team.
The selected editor for the assignment.
The number of students that have accepted the assignment.
The number of students that have submitted the assignment.
The number of students that have passed the assignment.
The programming language used in the assignment.
The time at which the assignment is due.
A GitHub Classroom classroom
object
Unique identifier of the classroom.
The name of the classroom.
Returns whether classroom is archived or not.
The url of the classroom on GitHub Classroom.
Examples
{ "id": "12,", "submitted": "false,", "passing": "false,", "commit_count": 5, "grade": "5/10", "students": [ { "id": 1, "login": "octocat", "avatar_url": "https://github.com/images/error/octocat_happy.gif", "html_url": "https://github.com/octocat" } ], "repository": { "id": 1296269, "full_name": "octocat/Hello-World", "html_url": "https://github.com/octocat/Hello-World", "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", "private": false, "default_branch": "main" }, "assignment": { "id": "12,", "public_repo": "false,", "title": "Intro to Binaries", "type": "individual", "invite_link": "https://classroom.github.com/a/Lx7jiUgx", "invitations_enabled": "true,", "slug": "intro-to-binaries", "students_are_repo_admins": false, "feedback_pull_requests_enabled": true, "max_teams": 0, "max_members": 0, "editor": "codespaces", "accepted": 100, "submitted": 40, "passing": 10, "language": "ruby", "classroom": { "id": 1296269, "name": "Programming Elixir", "archived": "false,", "url": "https://classroom.github.com/classrooms/1-programming-elixir" } }}Gone
Basic Error
object
Example generated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"}