classroom
Closing down - Get 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.
Gets a GitHub Classroom assignment. Assignment will only be returned if the current user is an administrator of the GitHub Classroom for the assignment.
get/assignments/{assignment_id}
Path parameters
assignment_idinteger required
The unique identifier of the classroom assignment.
Response
Response
Example response
{
"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",
"starter_code_repository": {
"id": 1296269,
"full_name": "octocat/Hello-World",
"html_url": "https://github.com/octocat/Hello-World",
"node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
"default_branch": "main"
},
"classroom": {
"id": 42,
"name": "Programming Elixir",
"organization": {
"id": 1,
"login": "github",
"node_id": "MDEyOk9yZ2FuaXphdGlvbjE=",
"html_url": "https://github.com/github",
"name": "Github - Code thigns happen here",
"avatar_url": "https://github.com/images/error/octocat_happy.gif"
},
"url": "https://classroom.github.com/classrooms/1-programming-elixir"
}
}