Thanks to visit codestin.com
Credit goes to docs.github.com

Skip to main content
The REST API is now versioned. For more information, see "About API versioning."

REST API endpoints for draft Project items

Use the REST API to manage draft items in Projects.

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.

Parameters for "Create draft item for organization owned project"

Headers
Name, Type, Description
accept string

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

Path parameters
Name, Type, Description
org string Required

The organization name. The name is not case sensitive.

project_number integer Required

The project's number.

Body parameters
Name, Type, Description
title string Required

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.

Parameters for "Create draft item for user owned project"

Headers
Name, Type, Description
accept string

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

Path parameters
Name, Type, Description
user_id string Required

The unique identifier of the user.

project_number integer Required

The project's number.

Body parameters
Name, Type, Description
title string Required

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