---
title: "Create Pr From Scan Result"
method: POST
path: "/api/endpoint-monitor/scan-results/{result_id}/create-pr"
tags: ["endpoint-monitor"]
---

# Create Pr From Scan Result

`POST /api/endpoint-monitor/scan-results/{result_id}/create-pr`

## Request

- Base URL: `https://api.deeptrace.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.deeptrace.com/api/endpoint-monitor/scan-results/{result_id}/create-pr`
- Auth: none declared

Create a PR to fix an anomaly detected in a scan result.

## Path parameters

- `result_id` string, uuid, required

## Request body

- ApiProactiveScanRouterCreatePRRequest: Request to create a PR from an investigation or scan result.
  - `repo_name` string, nullable
  - `base_branch` string
  - `action_type` 'fix' | 'silence' | 'add_observability'

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/deeptrace/apis/fastapi.md) - [All operations](https://skmtc.dev/deeptrace/apis/fastapi/llms.txt) - [OpenAPI document](https://skmtc.dev/deeptrace/apis/fastapi/revisions/855e59bb07f0?raw)
