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»

Заголовки
Имя., Тип, Description
accept string

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

Параметры пути
Имя., Тип, Description
org string Обязательное поле

The organization name. The name is not case sensitive.

project_number integer Обязательное поле

The project's number.

Параметры запроса
Имя., Тип, Description
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 codeDescription
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»

Заголовки
Имя., Тип, Description
accept string

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

Параметры пути
Имя., Тип, Description
user_id string Обязательное поле

The unique identifier of the user.

project_number integer Обязательное поле

The project's number.

Параметры запроса
Имя., Тип, Description
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 codeDescription
201

Created

304

Not modified

401

Requires authentication

403

Forbidden