Skip to main content

Enterprise Server 3.21 actualmente está disponible como versión candidata para lanzamiento.

Ahora la API REST está versionada. Para obtener más información, consulta "Acerca del control de versiones de la API".

Puntos de conexión de la API REST para borradores de proyectos

Use la API REST para administrar los elementos de borrador en Proyectos.

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"

Encabezados
Nombre, Tipo, Descripción
accept string

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

Parámetros de ruta
Nombre, Tipo, Descripción
org string Obligatorio

The organization name. The name is not case sensitive.

project_number integer Obligatorio

The project's number.

Parámetros del cuerpo
Nombre, Tipo, Descripción
title string Obligatorio

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 codeDescripción
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"

Encabezados
Nombre, Tipo, Descripción
accept string

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

Parámetros de ruta
Nombre, Tipo, Descripción
user_id string Obligatorio

The unique identifier of the user.

project_number integer Obligatorio

The project's number.

Parámetros del cuerpo
Nombre, Tipo, Descripción
title string Obligatorio

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 codeDescripción
201

Created

304

Not modified

401

Requires authentication

403

Forbidden