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

# Closing down - Get an assignment

`GET /assignments/{assignment_id}`

> **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).

Gets a GitHub Classroom assignment. Assignment will only be returned if the current user is an administrator of the GitHub Classroom for the assignment.

## Path parameters

- `assignment_id` integer, required

## Response `200`

Response

- ClassroomAssignment — 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 when a student accepts the assignment.
  - `feedback_pull_requests_enabled` boolean, required — Whether feedback pull request will be created when a student accepts the assignment.
  - `max_teams` integer, nullable, required — The maximum allowable teams for the assignment.
  - `max_members` integer, nullable, required — 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.
  - `starter_code_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.
  - `classroom` Classroom, required — A GitHub Classroom classroom
    - `id` integer, required — Unique identifier of the classroom.
    - `name` string, required — The name of the classroom.
    - `archived` boolean, required — Whether classroom is archived.
    - `organization` SimpleClassroomOrganization, required — A GitHub organization.
      - `id` integer, required
      - `login` string, required
      - `node_id` string, required
      - `html_url` string, uri, required
      - `name` string, nullable, required
      - `avatar_url` string, required
    - `url` string, required — The URL of the classroom on GitHub Classroom.

## Other responses

- `404` — Resource not found
- `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)
