Skip to main content

Enterprise Server 3.21 は、現在リリース候補として使用できます。

REST API はバージョン化されました。 詳細については、「API のバージョン管理について」を参照してください。

下書きプロジェクト項目の REST API エンドポイント

REST API を使用して、プロジェクトの下書きアイテムを管理します。

Create draft item for organization owned project

Create draft issue item for the specified organization owned project.

Fine-grained access tokens for "Create draft item for organization owned project"

This endpoint works with the following fine-grained token types:

The fine-grained token must have the following permission set:

  • "Projects" organization permissions (write)

This endpoint can be used without authentication or the aforementioned permissions if only public resources are requested.

"Create draft item for organization owned project" のパラメーター

ヘッダー
名前, タイプ, 説明
accept string

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

パスパラメーター
名前, タイプ, 説明
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.

HTTP response status codes for "Create draft item for organization owned project"

Status code説明
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.

Fine-grained access tokens for "Create draft item for user owned project"

This endpoint does not work with GitHub App user access tokens, GitHub App installation access tokens, or fine-grained personal access tokens.

"Create draft item for user owned project" のパラメーター

ヘッダー
名前, タイプ, 説明
accept string

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

パスパラメーター
名前, タイプ, 説明
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.

HTTP response status codes for "Create draft item for user owned project"

Status code説明
201

Created

304

Not modified

401

Requires authentication

403

Forbidden