Delete comments of the local user's pending review on a pull request. Local mode only.
POST
/pending-reviews/delete
const url = 'https://example.com/api/v1/pending-reviews/delete';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"url":"example","ids":[1]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/pending-reviews/delete \ --header 'Content-Type: application/json' \ --data '{ "url": "example", "ids": [ 1 ] }'Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
url
required
The URL of the pull request.
string
ids
required
Array<integer>
Examplegenerated
{ "url": "example", "ids": [ 1 ]}Responses
Section titled “ Responses ”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 ]}default
Section titled “default”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"}