> ## Documentation Index
> Fetch the complete documentation index at: https://docs.r28.ai/charter/llms.txt
> Use this file to discover all available pages before exploring further.

# dependabot_update_alert

> Dismiss a Dependabot alert or reopen one. Dismissing requires a `dismissed_reason` — one of fix_started, inaccurate, no_bandwidth, not_used or tolerable_risk.

<div className="tool-route"><span className="tool-row-method" data-method="PATCH">PATCH</span><code>{"https://api.github.com/repos/{owner}/{repo}/dependabot/alerts/{alertNumber}"}</code></div>

```python github_dependabot_update_alert.py theme={null}
from charter.packs import github

result = await github.dependabot_update_alert.ainvoke({"owner": ..., "repo": ..., "alertNumber": ...})
```

<Note>
  Requires `repo`, `read:user`.
</Note>

## Path parameters

<div className="reference-table">
  | Field                                                               | Type      | Description                                                                                                                     |
  | ------------------------------------------------------------------- | --------- | ------------------------------------------------------------------------------------------------------------------------------- |
  | `owner` <span className="required" title="required">\*</span>       | `string`  | The account owner of the repository. The name is not case sensitive.                                                            |
  | `repo` <span className="required" title="required">\*</span>        | `string`  | The name of the repository without the `.git` extension. The name is not case sensitive.                                        |
  | `alertNumber` <span className="required" title="required">\*</span> | `integer` | The number that identifies the alert in its repository — the `number` field on a listed alert, and the last segment of its URL. |
</div>

## Body

<div className="reference-table">
  | Field              | Type                                                                        | Description                                                                                                                                                             |
  | ------------------ | --------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | `state`            | `"dismissed" \| "open"`                                                     | The state of the Dependabot alert. A `dismissed_reason` must be provided when setting the state to `dismissed`.                                                         |
  | `dismissedReason`  | [DismissedReason](/charter/charter/packs/github/monitoring/objects#dismissedreason) | Required when `state` is `dismissed`. A reason for dismissing the alert.                                                                                                |
  | `dismissedComment` | `string`                                                                    | An optional comment associated with dismissing the alert. <span className="field-constraints">max length 280</span>                                                     |
  | `assignees`        | `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. |
</div>
