CorefinityCorefinityDocs
Open the Control PanelControl Panel
Pending changes · 3 of 4

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.

POST/api/corestack/sites/{site}/pending-changes/apply-now

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.

Body

confirmbooleanRequired

Must be true. Anything else is refused 422 confirm.

Returns

201 The operation applying them.

Fields of the 201 answer
operationobjectRequired

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
applied_atstring or null

Format: date-time.

committed_atstring or null

Format: date-time.

completed_atstring or nullRequired

Format: date-time.

created_atstring or nullRequired

Format: date-time.

environmentobject or any or null
errorstring or nullRequired
failure_reasonstring or null
idintegerRequired

At least 1.

labelstring or null
requested_byobject or any or null
scopestringRequired
siteobject or any or null
statusstringRequired

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_outexecutingcompletedfailed
status_labelstringRequired
stepstring or null
stepsarray of objectsRequired
Fields of each item
keystring
labelstring
statestring

One of done, current, todo, failed or skipped.

subjectobject or null
summarystring or null
typestringRequired
type_labelstringRequired
windowobject or null

If it is refused

StatusReasonWhat to do
401noneSend a valid token as Authorization: Bearer <token>.
403company_unavailableYour company is unavailable.
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_heldThese changes are on hold.
409batch_windowThese changes apply in tonight’s maintenance window.
409busyAnother operation is running on the site. Wait for it to finish.
409managed_elsewhereThis site is read-only here. Change it in the control panel that manages it.
409nothing_pendingNothing is queued to apply or cancel. Read the pending changes again.
422confirmThe action needs an explicit confirmation field. Ask the person, then send it.
429rate_limitedWait 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
  }'
{
  "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
  }
}
Try it

Try it is off for this endpointIt runs commands on a live site. Copy the request and run it yourself when you are sure.

Was this helpful?
Open in ClaudeOpen in ChatGPT