Skip to main content
POST
/
setImpactedTargets
Set impacted targets for a pull request.
curl --request POST \
  --url https://api.trunk.io/v1/setImpactedTargets \
  --header 'Content-Type: application/json' \
  --header 'x-api-token: <api-key>' \
  --data '
{
  "repo": {
    "host": "<string>",
    "owner": "<string>",
    "name": "<string>"
  },
  "pr": {
    "number": 2147483648,
    "sha": "<string>"
  },
  "targetBranch": "<string>",
  "impactedTargets": [
    "<string>"
  ]
}
'
"<string>"

Documentation Index

Fetch the complete documentation index at: https://docs.trunk.io/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
impactedTargets
required

Response

OK