v56

latestOpenAPI 3.0.3MITraw.githubusercontent.com2026-08-011,21696712.2 MB
classroom

Closing down - List assignments for a classroom

[!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 GitHub Classroom assignments for a classroom. Assignments will only be returned if the current user is an administrator of the GitHub Classroom.

get/classrooms/{classroom_id}/assignments

Path parameters

classroom_idinteger required

The unique identifier of the classroom.

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

idinteger required

Unique identifier of the repository.

public_repoboolean required

Whether an accepted assignment creates a public repository.

titlestring required

Assignment title.

type'individual' | 'group' required

Whether it's a Group Assignment or Individual Assignment.

invite_linkstring required

The link that a student can use to accept the assignment.

invitations_enabledboolean required

Whether the invitation link is enabled. Visiting an enabled invitation link will accept the assignment.

slugstring required

Sluggified name of the assignment.

students_are_repo_adminsboolean required

Whether students are admins on created repository on accepted assignment.

feedback_pull_requests_enabledboolean required

Whether feedback pull request will be created on assignment acceptance.

max_teamsinteger nullable

The maximum allowable teams for the assignment.

max_membersinteger nullable

The maximum allowable members per team.

editorstring required

The selected editor for the assignment.

acceptedinteger required

The number of students that have accepted the assignment.

submittedinteger required

The number of students that have submitted the assignment.

passinginteger required

The number of students that have passed the assignment.

languagestring required

The programming language used in the assignment.

deadlinestring date-time nullable required

The time at which the assignment is due.

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",
    "classroom": {
      "id": 42,
      "name": "Programming Elixir",
      "url": "https://classroom.github.com/classrooms/1-programming-elixir"
    }
  }
]