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

# Update Alert Config

Use this API to store the workspace's alert settings.

# Endpoint

`POST https://api.velt.dev/v2/memory/alerts/config/update`

# Headers

<ParamField header="x-velt-api-key" type="string" required>
  Your API key.
</ParamField>

<ParamField header="x-velt-auth-token" type="string" required>
  Your [Auth Token](/docs/security/auth-tokens).
</ParamField>

# Body

#### Params

<ParamField body="data" type="object" required>
  <Expandable title="properties">
    <ParamField body="config" type="object" required>
      `{ enabled?, maxAlertsPerWeek?, enabledAlertTypes?, severityThreshold? }`. `severityThreshold` is `high`, `medium`, or `low`. `maxAlertsPerWeek` must be a non-negative integer. `enabledAlertTypes` is an array of alert types: `anomaly`, `configuration_drift`, `emerging_standard`, or `standards_drift`. Unrecognized alert types and unrecognized keys inside `config` are accepted, stored, and returned by [Get Alert Config](/docs/api-reference/rest-apis/v2/memory/alerts/config/get).
    </ParamField>
  </Expandable>
</ParamField>

## **Example Requests**

#### Store alert settings

```JSON theme={null}
{
  "data": {
    "config": {
      "enabled": true,
      "maxAlertsPerWeek": 3,
      "severityThreshold": "medium"
    }
  }
}
```

# Response

The response confirms the update. The config is merged into the workspace's stored settings and returned by [Get Alert Config](/docs/api-reference/rest-apis/v2/memory/alerts/config/get).

These values are not applied to alert generation today. Alerts are capped at 3 per rolling 7 days per workspace.

#### Success Response

```JSON theme={null}
{
  "result": {
    "success": true
  }
}
```

#### Failure Response

```JSON theme={null}
{
  "error": {
    "message": "ERROR_MESSAGE",
    "status": "INVALID_ARGUMENT"
  }
}
```

<ResponseExample>
  ```js theme={null}
  {
    "result": {
      "success": true
    }
  }
  ```
</ResponseExample>
