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

# Modify alert

> Updates the status of an alert.

## Path parameters

**alert\_id** `string` *required*

## Body parameters

**comment** `string`

**status** `integer`

Possible states: 1 (Unknown), 2 (New), 3 (Pending Information), 4 (True Hit), 5 (True Hit Accepted), 6 (True Hit Rejected), 7 (False Positive)

## Response body

> [tab] 204
>
> No content.

> [tab] default
>
> unexpected error
>
> **errors** `APIError[]`
>
> Will contain both "v1" (deprecated, or soon to be) errors and "v2" errors. When possible, prefer errors that are not deprecated.
>
> **properties**
>
> **code** `string`
>
> **deprecated** `boolean`
>
> **message** `string`
>
> **will\_be\_deprecated** `boolean`

```json JSON
{
  "comment": "string",
  "status": "integer"
}
```

```javascript JavaScript

  const response = await fetch(
    "POST /api/v1/alerts/{alert_id}/status",
    {
      method: "post",
      headers: {
        "Content-Type": "application/json",
        "Authorization": `Bearer {token}`
      },
      body: JSON.stringify({
  "comment": "string",
  "status": "integer"
})
    }
  );
            
          
```

```json default
{
  "errors": [
    {
      "code": "string",
      "deprecated": "boolean",
      "message": "string",
      "will_be_deprecated": "boolean"
    }
  ]
}
```



This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.