Stazus docs
Stazus docs

Introduction

Stazus documentationGet startedConcepts

Planned features

Feature availabilityStatus pages

Monitoring

MonitorsChecks and resultsLatency alertingMaintenance windows

Incident response

IncidentsNotificationsTeams and access

Developer API

Developer APIAuthenticationProjects and checksAnalyticsIncidentsMaintenanceNotificationsMCPErrors and limitsMigrate to v3

Account and help

Account and security

Help

Support

Updates

Changelog
Changelog launchedDocumentation UpdatesDeveloper API v2Scope-aware maintenance windows
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": "…"
}
FieldNotes
scope_typeglobal (every check), project (with project_id) or check (with check_id).
timezoneAn IANA zone. Daily and weekly windows keep their local start time across daylight saving changes.
starts_atThe first occurrence.
duration_seconds60 seconds to 7 days, and no longer than the gap between two starts, so occurrences never overlap.
recurrencenone, daily, weekly (with recurrence_weekdays, 1 = Monday … 7 = Sunday) or every_n_hours (with recurrence_hours, 1–168).
untilOptional: no occurrence starts after it.
activefalse keeps the window but stops it applying.

Routes

RoutePermissionNotes
GET /maintenancemaintenance.readFilters active, scope_type, project_id, check_id.
POST /maintenancemaintenance.createThe fields above → 201. At most 100 windows per team.
PATCH /maintenance/{maintenance_id}maintenance.updateAny field, including the scope and pattern.
DELETE /maintenance/{maintenance_id}maintenance.delete204

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

Incidents

Read, open, update, close, reopen and merge incidents, with notes, checkpoints and statuses.

Notifications

Read the team's notification feed and manage members' alert subscriptions.

On this page

The window objectRoutes