CorefinityCorefinityDocs
Open the Control PanelControl Panel
Varnish · 18 of 19

Update a site's Varnish version

Moves the site to another Varnish version while Varnish is on. A version past its end of life needs acknowledge: ["eol"] and is refused ack_required without it. The site's custom VCL is compiled on the new version first; one that does not compile is refused vcl_incompatible. Follow the operation in the answer; with apply set to tonight or window, the change waits for the site's maintenance window.

PUT/api/corestack/sites/{site}/varnish/version

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

acknowledgearray of strings

What you accept about the version. eol for one past its end of life. Up to 1 items.

eol
applystring

When the change is applied. Here window is always taken, and means the same as tonight. When a change that needs a maintenance window is applied. now applies it at once. tonight queues it for the site's next window. window means the same as tonight. An endpoint that takes window only while maintenance windows are on for your company says so, and refuses it 422 on apply otherwise. Defaults to now.

nowtonightwindow
Fields
versionstringRequired

The version to move to, such as 8.0. A refusal may name this field to, an older name for it.

Returns

202 The change started (operation), or waits for the site's window (queued: true). Poll the operation until it finishes.

Fields of the 202 answer

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.
409busyAnother operation is running on the site. Wait for it to finish.
409image_not_offeredThe version this change needs is not available right now. Nothing was changed.
409managed_elsewhereThis site is read-only here. Change it in the control panel that manages it.
409unchangedNothing would change. Nothing to do.
422ack_requiredConfirm what this change does before it starts.
422feature_offThis feature is not on for your organisation yet.
422invalidFix the field named in field; errors says why.
422varnish_not_offeredVarnish is available for Magento 2 sites only. Nothing to change here.
422varnish_offVarnish is off on the environment. Switch it on first.
422vcl_incompatibleYour VCL does not compile on that Varnish version. Change the VCL first, or keep the version.
422version_unsupportedThat Varnish version is not offered, or not available yet. Choose another version.
429rate_limitedWait for the seconds in Retry-After.
502upstream_unavailableA service the action depends on did not answer. Try again later.
503vcl_check_unavailableYour VCL could not be checked against Varnish 8.0 just now. Try again in a minute.

Reasons are listed by name in Errors and refusals.

The same task elsewhere

curl -X PUT https://manage.corefinity.com/api/corestack/sites/1042/varnish/version \
  -H "Authorization: Bearer $COREFINITY_TOKEN" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "acknowledge": [
      "eol"
    ],
    "version": "8.0"
  }'
{
  "item_id": 77,
  "operation": null,
  "queued": true,
  "window_date": "2026-11-07"
}
Try it

Try it is off for this endpointIt has not been cleared for the console. Copy the request and run it yourself when you are sure.

Was this helpful?
Open in ClaudeOpen in ChatGPT