On-Call API › Maintenance windows
Update a maintenance window
PATCH/api/v1/maintenance-windows/{id}
Changes the title, description (body) or times, for example to extend a
running window. A field left out is unchanged; a blank title is ignored.
Permission (API-key scope): oncall:maintenance:write.
Authorization
bearerAuth(oncall:maintenance:write)apiKeyHeader(oncall:maintenance:write)
Parameters
Path parameters
idstring requiredThe maintenance window's id.
Request body required
titlestringbodystringstarts_atstring (date-time)ends_atstring (date-time)
Responses
200
The window after the change.
dataMaintenanceWindow requiredShow MaintenanceWindow properties
idstringorg_idstringtitlestringbodystringWhat the maintenance does.starts_atstring (date-time)ends_atstring (date-time)created_bystringcreated_atstring (date-time)ended_atstring (date-time)Set when the window was ended early.silence_oncallbooleanWhether paging is held back during the window.
successboolean required
400
The body is not JSON (INVALID_BODY), or the window would end before it starts or be longer than 30 days (INVALID_WINDOW).
errorobject requiredcodestring requiredMachine-readable code. Branch on this.messagestring requiredHuman-readable explanation.
401
No API key was sent, or it is unknown, revoked or expired (UNAUTHORIZED).
errorobject requiredcodestring requiredMachine-readable code. Branch on this.messagestring requiredHuman-readable explanation.
403
The key lacks the scope this endpoint needs (FORBIDDEN).
errorobject requiredcodestring requiredMachine-readable code. Branch on this.messagestring requiredHuman-readable explanation.
404
No maintenance window with this id in your organization (NOT_FOUND).
errorobject requiredcodestring requiredMachine-readable code. Branch on this.messagestring requiredHuman-readable explanation.
429
Too many requests (RATE_LIMITED). Wait Retry-After seconds.
Retry-AfterintegerSeconds to wait.
errorobject requiredcodestring requiredMachine-readable code. Branch on this.messagestring requiredHuman-readable explanation.
500
Something went wrong on EvoHub's side (INTERNAL_ERROR). Retry later.
errorobject requiredcodestring requiredMachine-readable code. Branch on this.messagestring requiredHuman-readable explanation.
Example request
curl -X PATCH 'https://evohub.io/api/v1/maintenance-windows/c1d2e3f4-a5b6-4c7d-8e9f-0a1b2c3d4e5f' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"ends_at": "2026-10-13T01:00:00Z"
}'