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

# Update Alerts

Update one or more alerts.

**Note**: You must provide at least one of: `Status`, `Assignee`, `Verdict`, `Verdict Reasoning`, `Severity`, or `Comment`.

<Note>
  External Documentation

  To learn more, visit the [Vega documentation](https://docs.vega.io/api-reference/mutations/update-alerts).
</Note>

## Parameters

<div className="integrations-table">
  | Parameter                | Description                                                                                    |
  | ------------------------ | ---------------------------------------------------------------------------------------------- |
  | Alert IDs                | A comma-separated list of alert IDs to update. Can be obtained using the `List Alerts` action. |
  | Assignee Emails          | A comma-separated list of user emails to assign to the alerts.                                 |
  | Comment                  | The comment to append after all other changes are applied.                                     |
  | Remove Or Edit Assignees | Select whether to remove all assignees or edit the assignee list.                              |
  | Severity                 | Select the severity to set on the alerts.                                                      |
  | Status                   | Select the status to set on the alerts.                                                        |
  | Verdict                  | Select the verdict to set.                                                                     |
  | Verdict Reasoning        | The reasoning for the verdict being applied.                                                   |
</div>

## Example Output

```json theme={"dark"}
{
	"data": {
		"updateAlerts": {
			"alerts": [
				{
					"id": "<string>",
					"vegaAlertId": "<string>",
					"detectionId": "<string>",
					"name": "<string>",
					"severity": "LOW",
					"status": "OPEN",
					"assignees": [
						{
							"userId": "<string>",
							"displayName": "<string>",
							"email": "<string>"
						}
					],
					"dataSources": [
						"<string>"
					],
					"createdAt": "2024-01-15T09:30:00Z",
					"updatedAt": "2024-01-15T09:30:00Z",
					"relatedIncidents": [
						{
							"incidentId": "<string>",
							"name": "<string>"
						}
					],
					"detectionSource": "<string>",
					"detectionDescription": "<string>",
					"detectionQuery": "<string>",
					"isTestMode": true,
					"verdict": "NA",
					"comments": [
						{
							"text": "<string>",
							"addedBy": "<string>",
							"addedAt": "2024-01-15T09:30:00Z"
						}
					],
					"description": "<string>",
					"assignee": {
						"userId": "<string>",
						"displayName": "<string>",
						"email": "<string>"
					},
					"mitre": {
						"mitreTactics": [
							"<string>"
						],
						"mitreTechniques": [
							"<string>"
						]
					},
					"eventCount": 123,
					"verdictReasoning": "<string>",
					"dedupCount": 123
				}
			],
			"error": {
				"code": "<string>",
				"message": "<string>"
			}
		}
	}
}
```

## Workflow Library Example

[Update Alerts with Vega and Send Results Via Email](https://library.blinkops.com/workflows/update-alerts-with-vega-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/update-alerts-with-vega-and-send-results-via-email/canvas" />
</div>
