---
title: "Configure PR Checks"
method: POST
path: "/repositories/code/continuous_integration/checks"
---

# Configure PR Checks

`POST /repositories/code/continuous_integration/checks`

Configure PR Checks

## Request body

- object
  - `code_repo_id` integer, required — The ID of the related code repo
  - `minimum_severity` 'low' | 'medium' | 'high' | 'critical', required — Minimum severity of new issues for when the CI Check should fail
  - `fail_on_dependency_scan` boolean, required — Boolean representing if the CI Check should fail for new dependency issues
  - `fail_on_sast_scan` boolean, required — Boolean representing if the CI Check should fail for new sast issues
  - `fail_on_iac_scan` boolean, required — Boolean representing if the CI Check should fail for new iac issues
  - `fail_on_secrets_scan` boolean, required — Boolean representing if the CI Check should fail for new secret issues
  - `fail_on_malware_scan` boolean, required — Boolean representing if the CI Check should fail for new malware issues
  - `post_inline_comments_min_severity` 'none' | 'low' | 'medium' | 'high' | 'critical' — Minimum severity of new issues for when inline comments should be posted. Default is 'none'
  - `minimum_license_severity` 'none' | 'high' | 'critical', required — Minimum severity of new license issues for when the CI Check should fail. 'none' means the CI Check will not fail for any new license issues
  - `fail_on_code_quality_scan` boolean, required — Boolean representing if the CI Check should fail for new code quality issues
  - `enable_code_quality_scan` boolean, required — Boolean representing if the code quality scan is enabled
  - `post_code_quality_inline_comments_min_severity` union, required — Minimum severity of new code quality issues for when inline comments should be posted. Can be null if the code quality scan is disabled.
    - string
    - unknown

## Response `200`

The CI checks configurations are updated.

- object
  - `success` integer — The integer 1 indicating success

---

[API](https://skmtc.net/aikido/apis/authorization.md) · [All operations](https://skmtc.net/aikido/apis/authorization/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aikido/authorization/versions/5445e7c21137/schema)
