---
title: "Set impacted targets for a pull request."
method: POST
path: "/setImpactedTargets"
---

# Set impacted targets for a pull request.

`POST /setImpactedTargets`

## Request body

- object
  - `repo` object, required
    - `host` string, required
    - `owner` string, required
    - `name` string, required
  - `pr` object, required
    - `number` integer, required
    - `sha` string, required
  - `targetBranch` string, required
  - `impactedTargets` union, required
    - string[]
    - 'ALL'

## Response `200`

OK

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.net/trunk/apis/trunk-apis.md) · [All operations](https://skmtc.net/trunk/apis/trunk-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/trunk/trunk-apis/versions/f7b911d8e24c/schema)
