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.
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
What you accept about the version. eol for one past its end of life. Up to 1 items.
eolWhen 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.
nowtonightwindowFields
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
| 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 | busy | Another operation is running on the site. Wait for it to finish. |
409 | image_not_offered | The version this change needs is not available right now. Nothing was changed. |
409 | managed_elsewhere | This site is read-only here. Change it in the control panel that manages it. |
409 | unchanged | Nothing would change. Nothing to do. |
422 | ack_required | Confirm what this change does before it starts. |
422 | feature_off | This feature is not on for your organisation yet. |
422 | invalid | Fix the field named in field; errors says why. |
422 | varnish_not_offered | Varnish is available for Magento 2 sites only. Nothing to change here. |
422 | varnish_off | Varnish is off on the environment. Switch it on first. |
422 | vcl_incompatible | Your VCL does not compile on that Varnish version. Change the VCL first, or keep the version. |
422 | version_unsupported | That Varnish version is not offered, or not available yet. Choose another version. |
429 | rate_limited | Wait for the seconds in Retry-After. |
502 | upstream_unavailable | A service the action depends on did not answer. Try again later. |
503 | vcl_check_unavailable | Your 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"
}'use Illuminate\Support\Facades\Http;
$response = Http::withToken(env('COREFINITY_TOKEN'))
->acceptJson()
->put('https://manage.corefinity.com/api/corestack/sites/1042/varnish/version', [
'acknowledge' => [
'eol',
],
'version' => '8.0',
]);
$data = $response->json();const res = await fetch('https://manage.corefinity.com/api/corestack/sites/1042/varnish/version', {
method: 'PUT',
headers: {
Authorization: `Bearer ${process.env.COREFINITY_TOKEN}`,
Accept: 'application/json',
'Content-Type': 'application/json',
},
body: JSON.stringify({
acknowledge: [
'eol',
],
version: '8.0',
}),
});
// 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.put(
"https://manage.corefinity.com/api/corestack/sites/1042/varnish/version",
headers={
"Authorization": f"Bearer {os.environ['COREFINITY_TOKEN']}",
"Accept": "application/json",
},
json={
"acknowledge": [
"eol",
],
"version": "8.0",
},
)
data = res.json() if res.content else None{
"item_id": 77,
"operation": null,
"queued": true,
"window_date": "2026-11-07"
}{
"message": "Unauthenticated."
}{
"code": "company_unavailable",
"message": "Your company is unavailable.",
"reason": "company_unavailable"
}{
"code": "feature_off",
"message": "Not found.",
"reason": "feature_off"
}{
"code": "busy",
"message": "Another change to this site is in progress. Wait for it to finish.",
"reason": "busy"
}{
"code": "ack_required",
"detail": {
"eol": "Varnish 8.0 no longer receives fixes from its upstream project; Corefinity keeps its image patched."
},
"message": "Confirm what this change does before it starts.",
"reason": "ack_required",
"required": [
"eol"
]
}{
"code": "rate_limited",
"message": "Too many requests. Try again in 60 seconds.",
"reason": "rate_limited",
"retry_after_seconds": 60
}{
"code": "upstream_unavailable",
"message": "The site's settings could not be read; try again shortly.",
"reason": "upstream_unavailable"
}{
"code": "vcl_check_unavailable",
"message": "Your VCL could not be checked against Varnish 8.0 just now. Try again in a minute.",
"reason": "vcl_check_unavailable"
}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.