CorefinityCorefinityDocs
Open the Control PanelControl Panel
Maintenance windows · 11 of 14

Delete a site's maintenance window

Deletes the website's own window, so it uses the window it inherits again (its CoreCluster's default, else your company's, else Corefinity's). Changes already queued move with it.

DELETE/api/corestack/sites/{site}/maintenance-window

Path parameters

siteintegerRequired

The id of a site row. A website's production site and each of its environments has its own id. Digits only. At least 1.

Returns

200 The window the site uses now.

Fields of the 200 answer
edit_refusalstring

Why the window cannot be changed. Sent only when editable is false.

window_scope_unavailableforbiddenwindow_locked
editablebooleanRequired
effectiveobjectRequired

The window in force, wherever it comes from.

Fields
end_hourintegerRequired

The hour the window closes. 0 to 23.

labelstringRequired

The window in words, such as 00:00–04:00 UK time.

length_hoursintegerRequired
sourcestringRequired

The level the window comes from. staff_lock is a window Corefinity has set, which cannot be changed here.

siteclusterstaff_lockcompanyplatform
source_labelstringRequired
staff_lockedbooleanRequired

True when Corefinity has set the window.

start_hourintegerRequired

The hour the window opens, in timezone. 0 to 23.

timezonestringRequired
inheritedobjectRequired

The window this level uses when it has none of its own.

Fields
levelstringRequired
websiteclustercompanyplatform
namestring or nullRequired
start_hourintegerRequired

0 to 23.

nextobject or any or nullRequired

The next occurrence of the window.

notice_periodobject or any or nullRequired

The notice period while it runs: until is its end, or null before it has a date. Null once it has passed.

ownobject or any or nullRequired

The start hour set at this level. Null when the level has none of its own and inherits.

pendingobjectRequired

Changes waiting for the window.

Fields
countintegerRequired
noticebooleanRequired

Whether you are told about them before they apply.

restampedinteger

Sent after a change: how many queued changes moved to the new window.

siteobjectRequired

A site by its id and domain.

Fields
domainstringRequired
idintegerRequired
snapshot_overlapobject or any or nullRequired

A scheduled snapshot that falls inside the window, with its local time. Null when there is none.

If it is refused

StatusReasonWhat to do
401noneSend a valid token as Authorization: Bearer <token>.
403company_unavailableYour company is unavailable.
403forbiddenThe person is not allowed to do this.
403scope_requiredUse a token with the scope named in scope.
403two_factor_requiredTurn on two-factor on your account, then send again.
404feature_offThis feature is not on for your organisation yet.
409batch_applyingMaintenance is running on the site now. Try again when it finishes.
409window_lockedThe maintenance window is set by Corefinity. Contact support to change it.
422window_scope_unavailableThis has no maintenance window of its own. Set the window on its website or cluster.
429rate_limitedWait for the seconds in Retry-After.
429throttledToo many tries. Wait a minute and try again.

Reasons are listed by name in Errors and refusals.

The same task elsewhere

curl -X DELETE https://manage.corefinity.com/api/corestack/sites/1042/maintenance-window \
  -H "Authorization: Bearer $COREFINITY_TOKEN" \
  -H "Accept: application/json"
{
  "editable": true,
  "effective": {
    "end_hour": 4,
    "label": "00:00–04:00 UK time",
    "length_hours": 4,
    "source": "platform",
    "source_label": "Corefinity default",
    "staff_locked": false,
    "start_hour": 0,
    "timezone": "Europe/London"
  },
  "inherited": {
    "level": "platform",
    "name": "Corefinity default",
    "start_hour": 0
  },
  "next": {
    "ends_at": "2026-11-04T04:00:00Z",
    "hours": 4,
    "label": "00:00–04:00 UK time",
    "last_start_at": "2026-11-04T03:30:00Z",
    "local_date": "2026-11-04",
    "starts_at": "2026-11-04T00:00:00Z"
  },
  "notice_period": {
    "until": null
  },
  "own": null,
  "pending": {
    "count": 0,
    "notice": false
  },
  "restamped": 0,
  "site": {
    "domain": "harbourandfinch.example.com",
    "id": 1042
  },
  "snapshot_overlap": null
}
Try it

Try it is off for this endpointIt deletes data that cannot be brought back. Copy the request and run it yourself when you are sure.

Was this helpful?
Open in ClaudeOpen in ChatGPT