Apply a site's pending changes now
Applies every pending change of the site now, together, instead of in its window. Answers the operation to follow.
Path parameters
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.
Body
Must be true. Anything else is refused 422 confirm.
Returns
201 The operation applying them.
Fields of the 201 answer
The operation that applies a site's pending changes. Follow it by id with getOperation. It carries fewer fields here than the operation you then read.
Fields
Format: date-time.
Format: date-time.
Format: date-time.
Format: date-time.
At least 1.
Where a change is. completed and failed are final; every other status means the change is still running and blocks another change to the same site.
pendingcommittedrolling_outexecutingcompletedfailedFields of each item
One of done, current, todo, failed or skipped.
If it is refused
| Status | Reason | What to do |
|---|---|---|
401 | none | Send a valid token as Authorization: Bearer <token>. |
403 | company_unavailable | Your company is unavailable. |
403 | scope_required | Use a token with the scope named in scope. |
403 | two_factor_required | Turn on two-factor on your account, then send again. |
404 | feature_off | This feature is not on for your organisation yet. |
409 | batch_held | These changes are on hold. |
409 | batch_window | These changes apply in tonight’s maintenance window. |
409 | busy | Another operation is running on the site. Wait for it to finish. |
409 | managed_elsewhere | This site is read-only here. Change it in the control panel that manages it. |
409 | nothing_pending | Nothing is queued to apply or cancel. Read the pending changes again. |
422 | confirm | The action needs an explicit confirmation field. Ask the person, then send it. |
429 | rate_limited | Wait for the seconds in Retry-After. |
Reasons are listed by name in Errors and refusals.
The same task elsewhere
curl -X POST https://manage.corefinity.com/api/corestack/sites/1042/pending-changes/apply-now \
-H "Authorization: Bearer $COREFINITY_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"confirm": true
}'use Illuminate\Support\Facades\Http;
$response = Http::withToken(env('COREFINITY_TOKEN'))
->acceptJson()
->post('https://manage.corefinity.com/api/corestack/sites/1042/pending-changes/apply-now', [
'confirm' => true,
]);
$data = $response->json();const res = await fetch('https://manage.corefinity.com/api/corestack/sites/1042/pending-changes/apply-now', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.COREFINITY_TOKEN}`,
Accept: 'application/json',
'Content-Type': 'application/json',
},
body: JSON.stringify({
confirm: true,
}),
});
// An answer with no body (204) has nothing to parse.
const text = await res.text();
const data = text && JSON.parse(text);import os
import requests
res = requests.post(
"https://manage.corefinity.com/api/corestack/sites/1042/pending-changes/apply-now",
headers={
"Authorization": f"Bearer {os.environ['COREFINITY_TOKEN']}",
"Accept": "application/json",
},
json={
"confirm": True,
},
)
data = res.json() if res.content else None{
"operation": {
"applied_at": null,
"can_retry": false,
"cluster": null,
"committed_at": "2026-11-04T11:00:00Z",
"completed_at": null,
"created_at": "2026-11-04T11:00:00Z",
"environment": {
"id": 1042,
"name": "Production",
"role": "production",
"slug": "production"
},
"error": null,
"failure_reason": null,
"from_version": null,
"hot": false,
"id": 5130,
"label": "Built",
"parent_operation_id": null,
"requested_by": {
"id": 2041,
"name": "Eleanor Finch"
},
"result": null,
"result_state": "none",
"retried_by_operation_id": null,
"retries_operation_id": null,
"retry_requires": null,
"scope": "batch",
"site": {
"domain": "harbourandfinch.example.com",
"id": 1042
},
"status": "committed",
"status_label": "Waiting for the platform",
"step": "built",
"steps": [
{
"key": "built",
"label": "Built",
"state": "current"
},
{
"key": "committed",
"label": "Committed",
"state": "todo"
},
{
"key": "verified",
"label": "Verified",
"state": "todo"
},
{
"key": "completed",
"label": "Completed",
"state": "todo"
}
],
"subject": {
"href": null,
"id": 4120,
"label": "harbourandfinch.example.com · Production",
"type": "restart_batch"
},
"summary": "Scheduled maintenance on harbourandfinch.example.com",
"to_version": null,
"type": "restart_batch_apply",
"type_label": "Apply tonight's changes",
"window": null
}
}{
"message": "Unauthenticated."
}{
"code": "company_unavailable",
"message": "Your company is unavailable.",
"reason": "company_unavailable"
}{
"code": "feature_off",
"message": "Not found.",
"reason": "feature_off"
}{
"code": "batch_held",
"message": "These changes are on hold.",
"reason": "batch_held"
}{
"code": "confirm",
"message": "Confirm that the pending changes may be applied now.",
"reason": "confirm"
}{
"code": "rate_limited",
"message": "Too many requests. Try again in 60 seconds.",
"reason": "rate_limited",
"retry_after_seconds": 60
}Try it is off for this endpointIt runs commands on a live site. Copy the request and run it yourself when you are sure.