apicheats.dev Cheat sheet Raw .md
PATCH

Try PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number} — GitHub API

GitHub playground

Update a Dependabot alert

Credentials

Kept in this tab only. Requests go through apicheats.dev's same-origin proxy straight to api.github.com; the proxy stores and logs nothing about them.

Headers

Path

Body application/json

5 body fields
  • state · required · string — The state of the Dependabot alert. A `dismissed_reason` must be provided when setting the state to `dismissed`.
  • dismissed_reason · optional · string — **Required when `state` is `dismissed`.** A reason for dismissing the alert.
  • dismissed_comment · optional · string — An optional comment associated with dismissing the alert.
  • assignees · optional · string[] — Usernames to assign to this Dependabot Alert. Pass one or more user logins to _replace_ the set of assignees on this alert. Send an empty array (`[]`) to clear all assignees from the alert. To assign an AI agent, include the bot login (for example, `copilot-swe-agent[bot]`).
  • agent_assignment · optional · object — Parameters for AI agent assignment. Only used when an agent bot login is included in `assignees`. Ignored when no agent is being assigned.