v56

latestOpenAPI 3.0.3MITraw.githubusercontent.com2026-08-011,4581,08113.3 MB
dependabot

Create a dismissal request for a Dependabot alert for a repository

Creates a new dismissal request to dismiss a Dependabot alert in a repository.

Delegated alert dismissal must be enabled on the repository and the user must have permission to view Dependabot alerts to access this endpoint. OAuth app tokens and personal access tokens (classic) need the security_events scope to use this endpoint.

post/repos/{owner}/{repo}/dismissal-requests/dependabot/{alert_number}

Path parameters

ownerstring required

The account owner of the repository. The name is not case sensitive.

repostring required

The name of the repository without the .git extension. The name is not case sensitive.

alert_numberinteger required

The number that identifies the Dependabot alert.

Request body

dismissed_reason'fix_started' | 'no_bandwidth' | 'tolerable_risk' | 'inaccurate' | 'not_used' required

The reason for dismissing the alert.

dismissed_commentstring

An optional comment explaining the dismissal.

Response

The created dismissal request.

idinteger

The unique identifier of the dismissal request.

numberinteger

The number uniquely identifying the dismissal request within its repository.

request_typestring

The type of request.

resource_identifierstring

The unique identifier for the request type of the dismissal request.

status'pending' | 'denied' | 'approved' | 'expired'

The status of the dismissal request.

requester_commentstring nullable

The comment the requester provided when creating the dismissal request.

expires_atstring date-time

The date and time the dismissal request will expire.

created_atstring date-time

The date and time the dismissal request was created.

urlstring uri
html_urlstring uri

The URL to view the dismissal request in a browser.

Example response

{
  "resource_identifier": "123",
  "url": "https://api.github.com/repos/octo-org/smile/dismissal-requests/dependabot/1",
  "html_url": "https://github.com/octo-org/smile/security/dependabot/1"
}