API reference

Update a maintenance window

Reschedule, extend or end early a maintenance window with the Uptenna API. Subscribers who were told hear about new times before it starts.

PATCH https://uptenna.com/v1/maintenance-windows/{id}

Change a window that hasn't ended, or end a running one early. If its times change before it starts, subscribers who were told get one email with the new times.

Path parameters

NameTypeRequiredDescription
idstringyesThe maintenance window's id (mnt_…).

Request body

JSON. Every field is optional: send only what changes.

NameTypeRequiredDescription
titlestringnoUp to 120 characters.
messagestring or nullnoWhat happens and what users may notice. Plain text, up to 1000 characters.
starts_attimestamp (ISO 8601)noCan't change once the window has started.
ends_attimestamp (ISO 8601)noA time at or before now ends a running window now.
monitor_idsarray of stringsnoMonitors on that page it affects: no incidents or alerts for them during the window.

Example request

curl
curl -X PATCH "https://uptenna.com/v1/maintenance-windows/mnt_F6s2Kd9QwLz3" \
  -H "Authorization: Bearer $UPTENNA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ends_at":"2027-01-09T05:00:00Z"}'
Node.js (fetch)
const res = await fetch("https://uptenna.com/v1/maintenance-windows/mnt_F6s2Kd9QwLz3", {
  method: "PATCH",
  headers: {
    Authorization: `Bearer ${process.env.UPTENNA_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({"ends_at":"2027-01-09T05:00:00Z"}),
});
if (!res.ok) throw new Error((await res.json()).error.message);
const maintenance = await res.json();

Response

Returns 200 OK with the maintenance window object.

200 OK
{
  "id": "mnt_F6s2Kd9QwLz3",
  "status_page_id": "sp_Hn4c7VtQ1wXa",
  "title": "Database upgrade",
  "message": "We're upgrading the main database. The API may answer slowly for a few minutes.",
  "starts_at": "2027-01-09T02:00:00.000Z",
  "ends_at": "2027-01-09T05:00:00.000Z",
  "state": "scheduled",
  "monitor_ids": [
    "mon_Xk3v9QmT2bLp"
  ],
  "created_at": "2026-12-01T16:20:31.000Z",
  "updated_at": "2026-12-01T16:20:31.000Z"
}

Errors

Errors look like { "error": { "code", "message" } } (see Errors).

StatusCodeWhen
400invalid_maintenanceA field is missing or invalid (the window must end after it starts, last up to 14 days and end in the future).
409maintenance_overThe window has ended.
409maintenance_startedstarts_at can't change once the window has started.
429rate_limitedMore than 30 posts that email subscribers (new incidents, updates, maintenance notices) in an hour.
404not_foundNo maintenance window with this id in your account.
401unauthorizedThe Authorization header is missing, malformed, or the key is unknown or revoked.
429rate_limitedMore than 120 requests in 60 seconds with this key. Wait for the Retry-After header's seconds.