Skip to main content
POST
/
cancelPullRequest
Cancel a pull request in a merge queue.
curl --request POST \
  --url https://api.trunk.io/v1/cancelPullRequest \
  --header 'Content-Type: application/json' \
  --header 'x-api-token: <api-key>' \
  --data '
{
  "repo": {
    "host": "<string>",
    "owner": "<string>",
    "name": "<string>"
  },
  "pr": {
    "number": 2147483647
  },
  "targetBranch": "<string>"
}
'
"<string>"

Documentation Index

Fetch the complete documentation index at: https://trunk-4cab4936-sam-gutentag-flaky-tests-new-monitors.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

x-api-token
string
header
required

Body

application/json
repo
object
required
pr
object
required
targetBranch
string
required

Response

OK