---
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`

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.net/deeptrace/apis/fastapi.md) · [All operations](https://skmtc.net/deeptrace/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/deeptrace/fastapi/revisions/048d21868ee8/schema)
