---
title: "End the planned-work window on one monitor agent's server now"
method: DELETE
path: "/agents/{id}/maintenance"
tags: ["Agents"]
---

# End the planned-work window on one monitor agent's server now

`DELETE /agents/{id}/maintenance`

## Request

- Base URL: `https://realuptime.io/api/v1`
- URL: `https://realuptime.io/api/v1/agents/{id}/maintenance`
- Auth: HTTP bearer

Accepts the same two credentials as POST. Normal evaluation resumes immediately.

## Path parameters

- `id` union, required
  - string, uuid
  - 'self'

## Response `200`

The window that was ended, or null when none was active.

- object
  - `window` object, nullable, required
    - `id` string, required
    - `agent_id` string, required
    - `starts_at` string, required
    - `ends_at` string, required
    - `reason` string, required
    - `hosts` string[], required
    - `opened_via` 'agent' | 'api' | 'dashboard', required

## Other responses

- `401`: Missing, invalid, or revoked API key. - `RU-1001` Missing API credentials: https://realuptime.io/kb/errors/ru-1001 - `RU-1002` Invalid or revoked API key: https://realuptime.io/kb/errors/ru-1002
- `403`: This key is read-only, or this key is IP-restricted and the request came from outside its allowlist. - `RU-1004` API key is read-only: https://realuptime.io/kb/errors/ru-1004 - `RU-1007` API key is restricted to an IP allowlist: https://realuptime.io/kb/errors/ru-1007
- `404`: No such agent on this account. - `RU-3003` Check not found: https://realuptime.io/kb/errors/ru-3003
- `429`: Per-key rate limit exceeded, a Free account's per-account request budget exceeded, or too many failed authentication attempts. - `RU-2003` API write rate limit exceeded: https://realuptime.io/kb/errors/ru-2003 - `RU-2001` Too many failed authentication attempts: https://realuptime.io/kb/errors/ru-2001

---

[API](https://skmtc.dev/realuptime/apis/realuptime-api-v1.md) · [All operations](https://skmtc.dev/realuptime/apis/realuptime-api-v1/llms.txt) · [OpenAPI document](https://skmtc.dev/realuptime/apis/realuptime-api-v1/revisions/51e481084700?raw)
