---
title: "Pause/unpause all (legacy) alerts."
method: POST
path: "/admin/pause-all-alerts"
tags: ["admin"]
---

# Pause/unpause all (legacy) alerts.

`POST /admin/pause-all-alerts`

## Request body

- PauseAllAlertsCommand
  - `paused` boolean

## Response `200`

(empty)

- object
  - `alertsAffected` integer, required — AlertsAffected is the number of the affected alerts.
  - `message` string, required
  - `state` string — Alert result state required true

## Other responses

- `401` — UnauthorizedError is returned when the request is not authenticated.
- `403` — ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.
- `500` — InternalServerError is a general error indicating something went wrong internally.

---

[API](https://skmtc.net/nforgeio/apis/grafana-http-api.md) · [All operations](https://skmtc.net/nforgeio/apis/grafana-http-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/nforgeio/grafana-http-api/versions/3cb6c3f42dc7/schema)
