provider projects POST /user/{user_id}/projectsV2/{project_number}/drafts
@utdk/github /user/{user_id}/projectsV2/{project_number}/drafts
Create draft item for user owned project
Create draft issue item for the specified user owned project.
user_id path required
The unique identifier of the user.
string
project_number path required
The project's number.
integer

Try it

Authentication
Configure credentials for GitHub v3 REST API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

projects.createDraftItemForAuthenticatedUser
POST/user/{user_id}/projectsV2/{project_number}/drafts
Create draft issue item for the specified user owned project.

Parameters

required

The unique identifier of the user.

required

The project's number.

Input

required

The title of the draft issue item to create in the project.

The body content of the draft issue item to create in the project.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import github from '@utdk/github';

await github.projects.createDraftItemForAuthenticatedUser()