|
73228 | 73228 | } |
73229 | 73229 | } |
73230 | 73230 | }, |
| 73231 | + "/user/{user_id}/projectsV2/{project_number}/drafts": { |
| 73232 | + "post": { |
| 73233 | + "summary": "Create draft item for user owned project", |
| 73234 | + "description": "Create draft issue item for the specified user owned project.", |
| 73235 | + "tags": [ |
| 73236 | + "projects" |
| 73237 | + ], |
| 73238 | + "operationId": "projects/create-draft-item-for-authenticated-user", |
| 73239 | + "externalDocs": { |
| 73240 | + "description": "API method documentation", |
| 73241 | + "url": "https://docs.github.com/rest/projects/drafts#create-draft-item-for-user-owned-project" |
| 73242 | + }, |
| 73243 | + "parameters": [ |
| 73244 | + { |
| 73245 | + "$ref": "#/components/parameters/user-id" |
| 73246 | + }, |
| 73247 | + { |
| 73248 | + "$ref": "#/components/parameters/project-number" |
| 73249 | + } |
| 73250 | + ], |
| 73251 | + "requestBody": { |
| 73252 | + "required": true, |
| 73253 | + "description": "Details of the draft item to create in the project.", |
| 73254 | + "content": { |
| 73255 | + "application/json": { |
| 73256 | + "schema": { |
| 73257 | + "type": "object", |
| 73258 | + "properties": { |
| 73259 | + "title": { |
| 73260 | + "type": "string", |
| 73261 | + "description": "The title of the draft issue item to create in the project." |
| 73262 | + }, |
| 73263 | + "body": { |
| 73264 | + "type": "string", |
| 73265 | + "description": "The body content of the draft issue item to create in the project." |
| 73266 | + } |
| 73267 | + }, |
| 73268 | + "required": [ |
| 73269 | + "title" |
| 73270 | + ] |
| 73271 | + }, |
| 73272 | + "examples": { |
| 73273 | + "title": { |
| 73274 | + "summary": "Example with Sample Draft Issue Title", |
| 73275 | + "value": { |
| 73276 | + "title": "Sample Draft Issue Title" |
| 73277 | + } |
| 73278 | + }, |
| 73279 | + "body": { |
| 73280 | + "summary": "Example with Sample Draft Issue Title and Body", |
| 73281 | + "value": { |
| 73282 | + "title": "Sample Draft Issue Title", |
| 73283 | + "body": "This is the body content of the draft issue." |
| 73284 | + } |
| 73285 | + } |
| 73286 | + } |
| 73287 | + } |
| 73288 | + } |
| 73289 | + }, |
| 73290 | + "responses": { |
| 73291 | + "201": { |
| 73292 | + "description": "Response", |
| 73293 | + "content": { |
| 73294 | + "application/json": { |
| 73295 | + "schema": { |
| 73296 | + "$ref": "#/components/schemas/projects-v2-item-simple" |
| 73297 | + }, |
| 73298 | + "examples": { |
| 73299 | + "draft_issue": { |
| 73300 | + "$ref": "#/components/examples/projects-v2-item-simple" |
| 73301 | + } |
| 73302 | + } |
| 73303 | + } |
| 73304 | + } |
| 73305 | + }, |
| 73306 | + "304": { |
| 73307 | + "$ref": "#/components/responses/not_modified" |
| 73308 | + }, |
| 73309 | + "403": { |
| 73310 | + "$ref": "#/components/responses/forbidden" |
| 73311 | + }, |
| 73312 | + "401": { |
| 73313 | + "$ref": "#/components/responses/requires_authentication" |
| 73314 | + } |
| 73315 | + }, |
| 73316 | + "x-github": { |
| 73317 | + "githubCloudOnly": false, |
| 73318 | + "enabledForGitHubApps": true, |
| 73319 | + "category": "projects", |
| 73320 | + "subcategory": "drafts" |
| 73321 | + } |
| 73322 | + } |
| 73323 | + }, |
73231 | 73324 | "/users": { |
73232 | 73325 | "get": { |
73233 | 73326 | "summary": "List users", |
@@ -310709,6 +310802,15 @@ |
310709 | 310802 | ], |
310710 | 310803 | "default": "created" |
310711 | 310804 | } |
| 310805 | + }, |
| 310806 | + "user-id": { |
| 310807 | + "name": "user_id", |
| 310808 | + "description": "The unique identifier of the user.", |
| 310809 | + "in": "path", |
| 310810 | + "required": true, |
| 310811 | + "schema": { |
| 310812 | + "type": "string" |
| 310813 | + } |
310712 | 310814 | } |
310713 | 310815 | }, |
310714 | 310816 | "responses": { |
|
0 commit comments