classroom
List accepted assignments for an assignment
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.
get/assignments/{assignment_id}/accepted_assignments
Path parameters
assignment_idinteger required
The unique identifier of the classroom assignment.
Query parameters
pageinteger
The page number of the results to fetch. For more information, see "Using pagination in the REST API."
per_pageinteger
The number of results per page (max 100). For more information, see "Using pagination in the REST API."
Response
Response
Example response
[
{
"id": 42,
"submitted": true,
"passing": true,
"commit_count": 5,
"grade": "10/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",
"default_branch": "main"
},
"assignment": {
"id": 42,
"public_repo": true,
"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": true,
"feedback_pull_requests_enabled": true,
"editor": "codespaces",
"accepted": 25,
"submitted": 10,
"passing": 10,
"language": "elixir",
"deadline": "2011-01-26T19:06:43Z",
"classroom": {
"id": 42,
"name": "Programming Elixir",
"url": "https://classroom.github.com/classrooms/1-programming-elixir"
}
}
}
]