草稿项目项的 REST API 终结点
使用 REST API 管理项目中的草稿项。
Create draft item for organization owned project
Create draft issue item for the specified organization owned project.
“Create draft item for organization owned project”的细粒度访问令牌
此端点支持以下精细令牌类型:
精细令牌必须具有以下权限集:
- "Projects" organization permissions (write)
如果仅请求公共资源,则无需身份验证或上述权限即可使用此终结点。
“Create draft item for organization owned project”的参数
| 名称, 类型, 说明 |
|---|
accept string Setting to |
| 名称, 类型, 说明 |
|---|
org string 必须The organization name. The name is not case sensitive. |
project_number integer 必须The project's number. |
| 名称, 类型, 说明 |
|---|
title string 必须The title of the draft issue item to create in the project. |
body string The body content of the draft issue item to create in the project. |
“Create draft item for organization owned project”的 HTTP 响应状态代码
| 状态代码 | 说明 |
|---|---|
201 | Created |
304 | Not modified |
401 | Requires authentication |
403 | Forbidden |
Create draft item for user owned project
Create draft issue item for the specified user owned project.
“Create draft item for user owned project”的细粒度访问令牌
此终结点不适用于 GitHub 应用程序用户访问令牌、GitHub 应用程序安装访问令牌或细粒度个人访问令牌。
“Create draft item for user owned project”的参数
| 名称, 类型, 说明 |
|---|
accept string Setting to |
| 名称, 类型, 说明 |
|---|
user_id string 必须The unique identifier of the user. |
project_number integer 必须The project's number. |
| 名称, 类型, 说明 |
|---|
title string 必须The title of the draft issue item to create in the project. |
body string The body content of the draft issue item to create in the project. |
“Create draft item for user owned project”的 HTTP 响应状态代码
| 状态代码 | 说明 |
|---|---|
201 | Created |
304 | Not modified |
401 | Requires authentication |
403 | Forbidden |