---
title: "Turn PR/MR reviews on or off for repositories, by their id from the repository list. A repository must be selected for Hacktron access before its reviews can be turned on."
method: POST
path: "/repos/pr-reviews"
tags: ["REST API - Repos"]
---

# Turn PR/MR reviews on or off for repositories, by their id from the repository list. A repository must be selected for Hacktron access before its reviews can be turned on.

`POST /repos/pr-reviews`

## Request

- Base URL: `https://api.hacktron.ai/v1`
- URL: `https://api.hacktron.ai/v1/repos/pr-reviews`
- Auth: API key in header `X-Api-Key`

## Headers

- `X-Organization-Id` string, required

## Request body

- RepositoryIdBatchDto
  - `enable` string[], required: Ids from the repository list of the repositories to turn on
  - `disable` string[], required: Ids from the repository list of the repositories to turn off

## Response `201`

- RepositoryBatchResultDto
  - `processed` number, required: Keys applied
  - `failed` number, required: Keys that failed
  - `failedRepositories` RepositoryBatchFailureDto[], required: Keys that failed, with the reason
    - `repo` string, required: The key the request named
    - `reason` string, required: Why the key was not applied
  - `webhookPending` string[], required: Keys turned on whose provider webhook could not be registered

## Changes

- **2026-11-03** `48b2f95b2320`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/hacktron/apis/hacktron-rest-api/changes/repos/pr-reviews/post.md)

---

[API](https://skmtc.dev/hacktron/apis/hacktron-rest-api.md) - [All operations](https://skmtc.dev/hacktron/apis/hacktron-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/hacktron/apis/hacktron-rest-api/revisions/48b2f95b2320?raw)
