---
title: "Review a dismissal request for a code scanning alert for a repository"
method: PATCH
path: "/repos/{owner}/{repo}/dismissal-requests/code-scanning/{alert_number}"
tags: ["code-scanning"]
---

# Review a dismissal request for a code scanning alert for a repository

`PATCH /repos/{owner}/{repo}/dismissal-requests/code-scanning/{alert_number}`

Approve or deny a dismissal request to dismiss a code scanning alert in a repository.

Delegated alert dismissal must be enabled on the repository and the user must be a dismissal reviewer to access this endpoint.
Personal access tokens (classic) need the `security_events` scope to use this endpoint.

## Path parameters

- `owner` string, required
- `repo` string, required
- `alert_number` integer, required

## Request body

- object
  - `status` 'approve' | 'deny', required — The review action to perform on the bypass request.
  - `message` string, required — A message to include with the review. Has a maximum character length of 2048.

## Response `204`

Successful update

## Other responses

- `403` — Forbidden
- `404` — Resource not found
- `422` — Validation failed, or the endpoint has been spammed.
- `500` — Internal Error

---

[API](https://skmtc.net/github/apis/github-v3-rest-api-3.md) · [All operations](https://skmtc.net/github/apis/github-v3-rest-api-3/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/github-v3-rest-api-3/versions/dc0584ac4e13/schema)
