Developer API
Maintenance
Schedule maintenance windows that recur in your own time zone.
During a window, checks keep running but their results are marked as suppressed, don't count toward statistics, and never open incidents. The timeline records the time as maintenance.
The window object
{
"id": "61",
"name": "Nightly deploy",
"scope_type": "check",
"project_id": null,
"check_id": "501",
"scope_name": "Checkout API",
"reason": "Deploy pipeline",
"timezone": "Europe/London",
"starts_at": "2026-11-09T02:00:00.000Z",
"duration_seconds": 1800,
"recurrence": "weekly",
"recurrence_hours": null,
"recurrence_weekdays": [1, 3, 5],
"until": null,
"active": true,
"retry_after_seconds": 300,
"created_by": { "user_id": "9", "display_name": "Ann Lee", "state": "active" },
"in_effect": false,
"current": null,
"next": { "starts_at": "2026-11-09T02:00:00.000Z", "ends_at": "2026-11-09T02:30:00.000Z" },
"created_at": "…",
"updated_at": "…"
}| Field | Notes |
|---|---|
scope_type | global (every check), project (with project_id) or check (with check_id). |
timezone | An IANA zone. Daily and weekly windows keep their local start time across daylight saving changes. |
starts_at | The first occurrence. |
duration_seconds | 60 seconds to 7 days, and no longer than the gap between two starts, so occurrences never overlap. |
recurrence | none, daily, weekly (with recurrence_weekdays, 1 = Monday … 7 = Sunday) or every_n_hours (with recurrence_hours, 1–168). |
until | Optional: no occurrence starts after it. |
active | false keeps the window but stops it applying. |
Routes
| Route | Permission | Notes |
|---|---|---|
GET /maintenance | maintenance.read | Filters active, scope_type, project_id, check_id. |
POST /maintenance | maintenance.create | The fields above → 201. At most 100 windows per team. |
PATCH /maintenance/{maintenance_id} | maintenance.update | Any field, including the scope and pattern. |
DELETE /maintenance/{maintenance_id} | maintenance.delete | 204 |
A change never takes effect before it was made, so it can't rewrite recorded history. A duration longer than the pattern allows is 422 on duration_seconds, with the longest allowed.
curl -X POST "https://backendv2-production.stazus.com/api/public/v3/maintenance" \
-H "Authorization: Bearer $STAZUS_API_TOKEN" \
-H "Idempotency-Key: deploy-window-2026-11" \
-H "Content-Type: application/json" \
-d '{"name": "Nightly deploy", "scope_type": "check", "check_id": "501", "timezone": "Europe/London",
"starts_at": "2026-11-09T02:00:00Z", "duration_seconds": 1800, "recurrence": "daily"}'Last updated on