Try the RankNibbler SEO API

Create a maintenance window Beta

POST /api/v1/maintenance

Needs an X-API-Key header whose owner has permission to manage uptime monitors in the app. The call counts once against your daily quota. See Monitoring API: getting started for authentication, rate limits and errors.

Body

FieldTypeDescription
description requiredstringUp to 200 characters.
from requiredstring | integerWhen the first occurrence starts, as ISO 8601 or UNIX seconds.
to requiredstring | integerWhen it ends. Must be after from, and at most 30 days later.
recurrence optionalstringnone (default), day, week or month. Monthly occurrences keep the same day of the month, or the last day in shorter months.
repeatEvery optionalinteger1 to 100. Default 1.
effectiveTo optionalstring | integer | nullStop repeating after this time. Must not be before from. Leave out or send null to repeat for ever.
monitorIdsstring[]The monitors to cover. Every id must be a monitor in your workspace.
allMonitorsbooleantrue to cover every monitor, now and in future.

Request

Response

201 Created with the window.

201 · application/json
  1. {
  2. "maintenance": { "id": "mw_3f9a0c1d2e4b5a6c7d8e", "description": "Weekly database backup", … },
  3. "usage": { "used": 31, "dailyLimit": 100, "tier": "free" }
  4. }

Errors

StatusWhen
400A missing or invalid field, a window longer than 30 days, occurrences that would overlap, no monitors chosen, or an unknown monitor id.
403The key's owner doesn't have permission to manage uptime monitors.
409The workspace already has 500 windows.

Related