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.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”The unique identifier of the classroom assignment.
Responses
Section titled “ Responses ”Response
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 when a student accepts the assignment.
Whether feedback pull request will be created when a student accepts the assignment.
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 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 classroom
object
Unique identifier of the classroom.
The name of the classroom.
Whether classroom is archived.
A GitHub organization.
object
The URL of the classroom on GitHub Classroom.
Examples
{ "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", "deadline": "2011-01-26T19:06:43Z", "stater_code_repository": { "id": 1296269, "full_name": "octocat/Hello-World", "html_url": "https://github.com/octocat/Hello-World", "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", "private": false, "default_branch": "main" }, "classroom": { "id": 1296269, "name": "Programming Elixir", "archived": "false,", "url": "https://classroom.github.com/classrooms/1-programming-elixir" }}Resource not found
Basic Error
object
Example generated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"}Gone
Basic Error
object
Example generated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"}