Skip to main content
POST
Set impacted targets for a pull request.

Authorizations

x-api-token
string
header
required

Your organization API token. In the Trunk app, find it under Settings → Developer → API Keys, in the Organization API token (v1) section. v2 API keys don't work with the v1 API. The v1 API will be deprecated soon.

Body

application/json
pr
object
required
targetBranch
string
required
impactedTargets
required
repo
object
repoId
string<uuid>

The Trunk repository ID, in place of repo. Send exactly one of the two.

Response

OK