Skip to main content

Enterprise Server 3.21 está disponível no momento como versão candidata a lançamento.

A API REST agora é versionada. Para obter mais informações, confira "Sobre o controle de versão da API".

Pontos de extremidade da API REST para itens do projeto em fase de elaboração

Use a API REST para gerenciar itens de rascunho em Projetos.

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.

Parâmetros para "Create draft item for organization owned project"

Cabeçalhos
Nome, Tipo, Descrição
accept string

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

Parâmetros de caminho
Nome, Tipo, Descrição
org string Obrigatório

The organization name. The name is not case sensitive.

project_number integer Obrigatório

The project's number.

Parâmetros do corpo
Nome, Tipo, Descrição
title string Obrigatório

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 codeDescrição
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.

Parâmetros para "Create draft item for user owned project"

Cabeçalhos
Nome, Tipo, Descrição
accept string

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

Parâmetros de caminho
Nome, Tipo, Descrição
user_id string Obrigatório

The unique identifier of the user.

project_number integer Obrigatório

The project's number.

Parâmetros do corpo
Nome, Tipo, Descrição
title string Obrigatório

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 codeDescrição
201

Created

304

Not modified

401

Requires authentication

403

Forbidden