Skip to content

Delete comments of the local user's pending review on a pull request. Local mode only.

POST
/pending-reviews/delete
curl --request POST \
--url https://example.com/api/v1/pending-reviews/delete \
--header 'Content-Type: application/json' \
--data '{ "url": "example", "ids": [ 1 ] }'
Media typeapplication/json
object
url
required

The URL of the pull request.

string
ids
required
Array<integer>
Examplegenerated
{
"url": "example",
"ids": [
1
]
}

The comments deleted, and the IDs that are not in the pending review.

Media typeapplication/json
object
deleted
required
Array<integer>
missing
required
Array<integer>
Examplegenerated
{
"deleted": [
1
],
"missing": [
1
]
}

An error.

Media typeapplication/problem+json

RFC 9457 problem details with a stable code.

object
type
required
string
title
required
string
status
required
integer
detail
string
instance
string
code
required

A stable machine-readable error code.

string
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example",
"code": "example"
}