---
title: "Update Alert Notification"
method: PATCH
path: "/tools/alerts/{Id}"
tags: ["alerts"]
---

# Update Alert Notification

`PATCH /tools/alerts/{Id}`

## Request

- Base URL: `https://pro.api.serversmtp.com/api/v2`
- URL: `https://pro.api.serversmtp.com/api/v2/tools/alerts/{Id}`
- Auth: one of:
  - API key in header `Authorization`
  - API key in header `consumerKey` and API key in header `consumerSecret`

Update Alert Notification.

## Path parameters

- `Id` integer, required

## Request body

- AlertBase
  - `email` string, email, required
  - `percentage` integer: Percentage of usage that will trigger the alert

## Response `200`

Sucess

Alert updated sucessfully.

- Alert
  - `email` string, email, required
  - `percentage` integer: Percentage of usage that will trigger the alert
  - `id` integer: Alert Id.

## Other responses

- `400`: Bad Request ###### Produces: * percentage_should_be_integer * percentage_should_not_be_less_than_0 * percentage_should_not_be_higher_than_100
- `401`: Unauthorized This API requires a valid API Key to be provided. (Use [/authentication/authorize](#/authentication/AuthenticationLogin) to obtain an API Key) Produces: * missing_authorization_key * invalid_authorization_key * account_is_inactive
- `404`: Not Found Please verify the alert id exists.

---

[API](https://skmtc.dev/serversmtp/apis/turbosmtp-public-apis.md) - [All operations](https://skmtc.dev/serversmtp/apis/turbosmtp-public-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/serversmtp/apis/turbosmtp-public-apis/revisions/8503e099b215?raw)
