Конечные точки REST API для черновиков элементов проекта
Используйте REST API для управления черновиками элементов в проектах.
Create draft item for organization owned project
Create draft issue item for the specified organization owned project.
Подробные маркеры доступа для "Create draft item for organization owned project
Эта конечная точка работает со следующими точными типами маркеров:
- Маркеры доступа пользователей приложения GitHub
- Маркеры доступа к установке приложений GitHub
- Точные личные маркеры доступа
Маркер с точной детализацией должен иметь следующий набор разрешений.:
- "Projects" organization permissions (write)
Эту конечную точку можно использовать без проверки подлинности или указанных выше разрешений, если запрашиваются только общедоступные ресурсы.
Параметры для "Create draft item for organization owned project"
| Имя., Тип, Description |
|---|
accept string Setting to |
| Имя., Тип, Description |
|---|
org string Обязательное полеThe organization name. The name is not case sensitive. |
project_number integer Обязательное полеThe project's number. |
| Имя., Тип, Description |
|---|
title string Обязательное поле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-ответа для "Create draft item for organization owned project"
| Код состояния | Description |
|---|---|
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.
Подробные маркеры доступа для "Create draft item for user owned project
Эта конечная точка не работает с маркерами доступа пользователей приложения GitHub, маркерами доступа к установке приложения GitHub или точными личными маркерами доступа.
Параметры для "Create draft item for user owned project"
| Имя., Тип, Description |
|---|
accept string Setting to |
| Имя., Тип, Description |
|---|
user_id string Обязательное полеThe unique identifier of the user. |
project_number integer Обязательное полеThe project's number. |
| Имя., Тип, Description |
|---|
title string Обязательное поле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-ответа для "Create draft item for user owned project"
| Код состояния | Description |
|---|---|
201 | Created |
304 | Not modified |
401 | Requires authentication |
403 | Forbidden |