---
title: "Set PR scan issue and clean summaries together"
method: POST
path: "/api/v1/repositories/set-pr-scan-summaries-enabled"
tags: ["Repositories"]
---

# Set PR scan issue and clean summaries together

`POST /api/v1/repositories/set-pr-scan-summaries-enabled`

## Request

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

Atomically enables or disables both PR issue-summary comments and clean-scan summary comments for a repository

## Request body

- SetPrScanSummariesEnabledInput
  - `organizationId` string
  - `repositoryId` string, required
  - `prScanSummariesEnabled` boolean, required: When true, both issue-found and clean-scan PR summary comments are enabled; when false, both are disabled (single atomic update)

## Response `200`

Successful response

- object
  - `ok` boolean

## Other responses

- `400`: Bad Request
- `401`: Unauthorized

---

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