/repos/{owner}/{repo}/dependabot/alerts/{alert_number}Update a Dependabot alert
Updates a Dependabot alert in a repository, changing its state, dismissal details, assignees, or agent assignment. Provide state or assignees at minimum; when dismissing an alert, include dismissed_reason, and use assignees to replace or clear the existing assignments. The authenticated user needs access to repository security alerts, and OAuth app tokens or classic personal access tokens need the security_events scope, or public_repo for public repositories.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
Fields to update on the Dependabot alert. Provide state or assignees at minimum.
A 400 is returned for an invalid request, and a 403 when the authenticated user lacks access to repository security alerts or the token lacks the required scope. A 404 indicates that the repository or alert was not found; a 409 indicates a conflict while updating; a 410 indicates the resource is gone; and a 422 indicates validation failure or that the endpoint has been spammed. The owner and repo path parameters must identify the repository, and the alert_number path parameter must identify an alert in it. Supply state or assignees; state must be dismissed or open, dismissed_reason is required for dismissed and must be one of fix_started, inaccurate, no_bandwidth, not_used, or tolerable_risk, and dismissed_comment must not exceed 280 characters.