Spike.sh
DashboardWebsiteHUB
Spike API docs
Spike API docs
  • Page
  • About
  • API reference
    • Incidents
      • Create
      • Get previous incidents
      • Incident context
      • Activity log
      • Triggered
      • Acknowledged
      • Assigned to user
      • Acknowledge
      • Resolve
      • Escalate
      • Priority
      • Severity
    • Services
      • Create
      • Affected
    • On calls
    • Integrations
      • Available
      • Create
      • Archive
    • Orgs
      • Members
      • Info
    • Teams
      • Get all teams
      • Get my teams
    • Oncalls
      • Am i on call
      • Upcoming shifts
    • Status page
      • All
      • Component
        • Create
      • Incidents
      • Planned maintenance
        • Upcoming
        • Create
      • Subscribers
      • Incident
        • New
  • Specification
Powered by GitBook
On this page

Was this helpful?

Edit on GitHub
  1. API reference
  2. Status page
  3. Planned maintenance

Create

PreviousUpcomingNextSubscribers

Last updated 4 months ago

Was this helpful?

Create maintenance window

post

Create a new planned maintenance window

Path parameters
statusPageIdstringRequired

Status Page ID

Header parameters
x-api-keystringRequired

API Key for authentication

Body
titlestringRequired

Maintenance window title

descstringRequired

Maintenance description

startDatestringRequired

Start date (DD/MM/YYYY)

endDatestringRequired

End date (DD/MM/YYYY)

startTimestringRequired

Start time (HH:mm)

endTimestringRequired

End time (HH:mm)

notifybooleanOptional

Notify subscribers when maintenance starts

componentsstring[]Required

Array of component IDs

notifyNowbooleanOptional

Send notification about schedule now

notifyOnEndbooleanOptional

Send notification when maintenance ends

Responses
200
Maintenance window created successfully
401
Unauthorized
post
POST /api/status-page/{statusPageId}/planned-maintenance/create HTTP/1.1
Host: api.spike.sh
x-api-key: text
Content-Type: application/json
Accept: */*
Content-Length: 216

{
  "title": "text",
  "desc": "text",
  "startDate": "text",
  "endDate": "text",
  "startTime": "text",
  "endTime": "text",
  "notify": true,
  "components": [
    "text"
  ],
  "notifyNow": true,
  "notifyOnEnd": true,
  "reminders": [
    {
      "time": 1,
      "unit": "minutes"
    }
  ]
}

No content