Skip to main content
PUT
Upload a pull request's impacted targets

Authorizations

Authorization
string
header
required

An API key, sent as Authorization: Bearer <key>. An organization admin creates one in the Trunk app under Settings → Developer → API Keys and chooses the merge-queue permissions it holds; a key with none can read merge queues but change nothing. Those permissions scope merge queue only: every key can use the Flaky Tests and Dynamic CI endpoints, including their writes, whatever permissions it holds.

Body

application/json

Address the pull request by exactly one of number or branch, and declare impact with exactly one of impactedTargets or impactsAllTargets: true. An empty impactedTargets array is valid and means the sha impacts nothing.

repositoryId
string<uuid>
required
targetBranch
string
required
Minimum string length: 1
sha
string
required
Pattern: ^[A-Za-z0-9]+$
Example:

"3f2c9a1b7e4d"

number
integer
required
Required range: x <= 10000000
impactedTargets
string[]
required
Maximum array length: 100000
Minimum string length: 1
branch
string
Minimum string length: 1
impactsAllTargets
enum<boolean>
Available options:
true

Response

The targets were accepted