Publish Drafts (by ID)
Request
POST
https://api.sourcecraft.tech/pulls/id:{pull_request_id}/comments/publish-drafts
Path parameters
|
Name |
Description |
|
pull_request_id |
Type: string Example: `` |
Body
application/json
{
"org_slug": "example",
"repo_slug": "example",
"pull_request_slug": "example",
"silent": true
}
|
Name |
Description |
|
org_slug |
Type: string Example: |
|
pull_request_slug |
Type: string Example: |
|
repo_slug |
Type: string Example: |
|
silent |
Type: boolean |
Responses
200 OK
A successful response.
Body
application/json
{
"published_count": "example"
}
|
Name |
Description |
|
published_count |
Type: string<uint64> Example: |
default
Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme
Body
application/json
{
"error_code": "example",
"message": "example",
"request_id": "example",
"details": {}
}
|
Name |
Description |
||
|
details |
Type: Optional details. Exact structure depends on error_code
Example
|
||
|
error_code |
Type: string Example: |
||
|
message |
Type: string Example: |
||
|
request_id |
Type: string Example: |
Была ли статья полезна?
Предыдущая
Следующая