cancel review requests for a pull request
DELETE
/repos/{owner}/{repo}/pulls/{index}/requested_reviewers
const url = 'https://gitea.com/api/v1/repos/example/example/pulls/1/requested_reviewers';const options = { method: 'DELETE', headers: {Authorization: 'Basic <credentials>', 'Content-Type': 'application/json'}, body: '{"reviewers":["example"],"team_reviewers":["example"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://gitea.com/api/v1/repos/example/example/pulls/1/requested_reviewers \ --header 'Authorization: Basic <credentials>' \ --header 'Content-Type: application/json' \ --data '{ "reviewers": [ "example" ], "team_reviewers": [ "example" ] }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”owner
required
string
Owner of the repo
repo
required
string
Name of the repo
index
required
integer format: int64
Index of the pull request
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
PullReviewRequestOptions are options to add or remove pull request review requests
object
reviewers
Array<string>
team_reviewers
Array<string>
Examplegenerated
{ "reviewers": [ "example" ], "team_reviewers": [ "example" ]}Responses
Section titled “Responses”APIEmpty is an empty response
APIForbiddenError is a forbidden error response
Headers
Section titled “Headers”message
string
url
string
APINotFound is a not found empty response
APIValidationError is error format response related to input validation
Headers
Section titled “Headers”message
string
url
string