---
title: "Update an alert"
canonical: https://docs.mentio.dev/api/alerts/update-alert
markdown: https://docs.mentio.dev/api/alerts/update-alert.mdx
---

# Update an alert

`PATCH /v1/alerts/{id}`

## Parameters

- `id` (path, required): Alert id (feed_...).

## Body

- `name`: string
- `enabled`: boolean
- `mode`: string
- `filter`: Replaces the whole filter.
- `schedule`: object
- `event`: string
- `channelIds`: Replaces the whole list.

## Responses

- 200: The updated rule
- 400: A daily or weekly rule without a schedule (or a weekly one without a weekday), or an unknown channel
- 401: Missing or invalid API key
- 404: Rule not found

Full schemas: https://api.mentio.dev/v1/openapi.json. Conventions: https://docs.mentio.dev/conventions.mdx
