Skip to main content
PUT
/
api
/
v1
/
maintenance-windows
/
{id}
Update a maintenance window
curl --request PUT \
  --url https://api.devhelm.io/api/v1/maintenance-windows/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "startsAt": "2023-11-07T05:31:56Z",
  "endsAt": "2023-11-07T05:31:56Z",
  "monitorId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "repeatRule": "<string>",
  "reason": "<string>",
  "suppressAlerts": true
}
'
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "monitorId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "organizationId": 123,
    "startsAt": "2023-11-07T05:31:56Z",
    "endsAt": "2023-11-07T05:31:56Z",
    "repeatRule": "<string>",
    "reason": "<string>",
    "suppressAlerts": true,
    "createdAt": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

API key (dh_live_...) or Auth0 JWT token

Path Parameters

id
string<uuid>
required

Body

application/json
startsAt
string<date-time>
required

Updated start time (ISO 8601)

endsAt
string<date-time>
required

Updated end time (ISO 8601)

monitorId
string<uuid>

Monitor to attach this maintenance window to; null preserves current

repeatRule
string

Updated iCal RRULE; null clears the repeat rule

Maximum string length: 100
reason
string

Updated reason; null clears the existing reason

suppressAlerts
boolean

Whether to suppress alerts; null preserves current

Response

200 - */*

OK

data
object

Scheduled maintenance window for a monitor