REST-API-Endpunkte für Projektentwürfe
Verwenden Sie die REST-API, um Entwurfselemente in Projekten zu verwalten.
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:
- GitHub App user access tokens
- GitHub App installation access tokens
- Fine-grained personal access tokens
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.
Parameter für "Create draft item for organization owned project"
| Name, Typ, BESCHREIBUNG |
|---|
accept string Setting to |
| Name, Typ, BESCHREIBUNG |
|---|
org string ErforderlichThe organization name. The name is not case sensitive. |
project_number integer ErforderlichThe project's number. |
| Name, Typ, BESCHREIBUNG |
|---|
title string ErforderlichThe 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 code | BESCHREIBUNG |
|---|---|
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.
Parameter für "Create draft item for user owned project"
| Name, Typ, BESCHREIBUNG |
|---|
accept string Setting to |
| Name, Typ, BESCHREIBUNG |
|---|
user_id string ErforderlichThe unique identifier of the user. |
project_number integer ErforderlichThe project's number. |
| Name, Typ, BESCHREIBUNG |
|---|
title string ErforderlichThe 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 code | BESCHREIBUNG |
|---|---|
201 | Created |
304 | Not modified |
401 | Requires authentication |
403 | Forbidden |