Skip to main content
Skip to content

GitHub Classroom 的 REST API 终结点

使用 REST API 与 GitHub Classroom 交互。

Closed - Get an assignment

Warning

Closed notice: This operation is no longer available as of August 28, 2026. For more information, see the GitHub Classroom sunset notice.

“Closed - Get an assignment”的细粒度访问令牌

此终结点不适用于GitHub应用用户访问令牌、GitHub应用安装访问令牌或精细的个人访问令牌。

“”Closed - Get an assignment 的参数

标头
名称, 类型, 说明
accept string

Setting to application/vnd.github+json is recommended.

路径参数
名称, 类型, 说明
assignment_id integer 必须

The unique identifier of the classroom assignment.

“Closed - Get an assignment”的 HTTP 响应状态代码

状态代码说明
410

Gone

Closed - List accepted assignments for an assignment

Warning

Closed notice: This operation is no longer available as of August 28, 2026. For more information, see the GitHub Classroom sunset notice.

“Closed - List accepted assignments for an assignment”的细粒度访问令牌

此终结点不适用于GitHub应用用户访问令牌、GitHub应用安装访问令牌或精细的个人访问令牌。

“”Closed - List accepted assignments for an assignment 的参数

标头
名称, 类型, 说明
accept string

Setting to application/vnd.github+json is recommended.

路径参数
名称, 类型, 说明
assignment_id integer 必须

The unique identifier of the classroom assignment.

“Closed - List accepted assignments for an assignment”的 HTTP 响应状态代码

状态代码说明
410

Gone

Closed - Get assignment grades

Warning

Closed notice: This operation is no longer available as of August 28, 2026. For more information, see the GitHub Classroom sunset notice.

“Closed - Get assignment grades”的细粒度访问令牌

此终结点不适用于GitHub应用用户访问令牌、GitHub应用安装访问令牌或精细的个人访问令牌。

“”Closed - Get assignment grades 的参数

标头
名称, 类型, 说明
accept string

Setting to application/vnd.github+json is recommended.

路径参数
名称, 类型, 说明
assignment_id integer 必须

The unique identifier of the classroom assignment.

“Closed - Get assignment grades”的 HTTP 响应状态代码

状态代码说明
410

Gone

Closed - List classrooms

Warning

Closed notice: This operation is no longer available as of August 28, 2026. For more information, see the GitHub Classroom sunset notice.

“Closed - List classrooms”的细粒度访问令牌

此终结点不适用于GitHub应用用户访问令牌、GitHub应用安装访问令牌或精细的个人访问令牌。

“Closed - List classrooms”的 HTTP 响应状态代码

状态代码说明
410

Gone

Closed - Get a classroom

Warning

Closed notice: This operation is no longer available as of August 28, 2026. For more information, see the GitHub Classroom sunset notice.

“Closed - Get a classroom”的细粒度访问令牌

此终结点不适用于GitHub应用用户访问令牌、GitHub应用安装访问令牌或精细的个人访问令牌。

“”Closed - Get a classroom 的参数

标头
名称, 类型, 说明
accept string

Setting to application/vnd.github+json is recommended.

路径参数
名称, 类型, 说明
classroom_id integer 必须

The unique identifier of the classroom.

“Closed - Get a classroom”的 HTTP 响应状态代码

状态代码说明
410

Gone

Closed - List assignments for a classroom

Warning

Closed notice: This operation is no longer available as of August 28, 2026. For more information, see the GitHub Classroom sunset notice.

“Closed - List assignments for a classroom”的细粒度访问令牌

此终结点不适用于GitHub应用用户访问令牌、GitHub应用安装访问令牌或精细的个人访问令牌。

“”Closed - List assignments for a classroom 的参数

标头
名称, 类型, 说明
accept string

Setting to application/vnd.github+json is recommended.

路径参数
名称, 类型, 说明
classroom_id integer 必须

The unique identifier of the classroom.

“Closed - List assignments for a classroom”的 HTTP 响应状态代码

状态代码说明
410

Gone