---
title: "Set PR scanning"
method: POST
path: "/api/v1/repositories/set-pr-scanning"
tags: ["Repositories"]
---

# Set PR scanning

`POST /api/v1/repositories/set-pr-scanning`

## Request

- Base URL: `https://zeropath.com`
- URL: `https://zeropath.com/api/v1/repositories/set-pr-scanning`
- Auth: API key in header `X-ZeroPath-API-Token-Id` and API key in header `X-ZeroPath-API-Token-Secret`

Enable or disable automatic security scanning of pull requests

## Request body

- object
  - `organizationId` string, required: Organization containing the repository
  - `repositoryId` string, required: Repository to update
  - `prScansEnabled` boolean, required: Whether to enable automatic PR scanning

## Response `200`

Successful response

- object
  - `ok` boolean

---

[API](https://skmtc.dev/zeropath/apis/zeropath-api.md) - [All operations](https://skmtc.dev/zeropath/apis/zeropath-api/llms.txt) - [OpenAPI document](https://skmtc.dev/zeropath/apis/zeropath-api/revisions/126e9c80ba0d?raw)
