Skip to main content

Enterprise Server 3.21 is currently available as a release candidate.

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

works_with_fine_grained_tokens:

permission_set:

  • "Projects" organization permissions (write)

allows_public_read_access

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_status_code

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

no_fine_grained_access

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_status_code

status_codeDescription
201

Created

304

Not modified

401

Requires authentication

403

Forbidden