---
title: "Closing down - List accepted assignments for an assignment"
method: GET
path: "/assignments/{assignment_id}/accepted_assignments"
tags: ["classroom"]
deprecated: true
---

# Closing down - List accepted assignments for an assignment

`GET /assignments/{assignment_id}/accepted_assignments`

> **Deprecated.**

> [!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](https://gh.io/classroom-sunset).

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.

## Path parameters

- `assignment_id` integer, required

## Query parameters

- `page` integer
- `per_page` integer

## Response `200`

Response

- ClassroomAcceptedAssignment[]
  - `id` integer, required — Unique identifier of the repository.
  - `submitted` boolean, required — Whether an accepted assignment has been submitted.
  - `passing` boolean, required — Whether a submission passed.
  - `commit_count` integer, required — Count of student commits.
  - `grade` string, required — Most recent grade.
  - `students` SimpleClassroomUser[], required
    - `id` integer, required
    - `login` string, required
    - `avatar_url` string, uri, required
    - `html_url` string, uri, required
  - `repository` SimpleClassroomRepository, required — A GitHub repository view for Classroom
    - `id` integer, required — A unique identifier of the repository.
    - `full_name` string, required — The full, globally unique name of the repository.
    - `html_url` string, uri, required — The URL to view the repository on GitHub.com.
    - `node_id` string, required — The GraphQL identifier of the repository.
    - `private` boolean, required — Whether the repository is private.
    - `default_branch` string, required — The default branch for the repository.
  - `assignment` SimpleClassroomAssignment, required — A GitHub Classroom assignment
    - `id` integer, required — Unique identifier of the repository.
    - `public_repo` boolean, required — Whether an accepted assignment creates a public repository.
    - `title` string, required — Assignment title.
    - `type` 'individual' | 'group', required — Whether it's a Group Assignment or Individual Assignment.
    - `invite_link` string, required — The link that a student can use to accept the assignment.
    - `invitations_enabled` boolean, required — Whether the invitation link is enabled. Visiting an enabled invitation link will accept the assignment.
    - `slug` string, required — Sluggified name of the assignment.
    - `students_are_repo_admins` boolean, required — Whether students are admins on created repository on accepted assignment.
    - `feedback_pull_requests_enabled` boolean, required — Whether feedback pull request will be created on assignment acceptance.
    - `max_teams` integer, nullable — The maximum allowable teams for the assignment.
    - `max_members` integer, nullable — The maximum allowable members per team.
    - `editor` string, required — The selected editor for the assignment.
    - `accepted` integer, required — The number of students that have accepted the assignment.
    - `submitted` integer, required — The number of students that have submitted the assignment.
    - `passing` integer, required — The number of students that have passed the assignment.
    - `language` string, required — The programming language used in the assignment.
    - `deadline` string, date-time, nullable, required — The time at which the assignment is due.
    - `classroom` SimpleClassroom, required — A GitHub Classroom classroom
      - `id` integer, required — Unique identifier of the classroom.
      - `name` string, required — The name of the classroom.
      - `archived` boolean, required — Returns whether classroom is archived or not.
      - `url` string, required — The url of the classroom on GitHub Classroom.

## Other responses

- `410` — Gone

---

[API](https://skmtc.net/github/apis/github-v3-rest-api-3.md) · [All operations](https://skmtc.net/github/apis/github-v3-rest-api-3/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/github-v3-rest-api-3/versions/dc0584ac4e13/schema)
