Restore an error page revision
Saves an earlier revision's configuration again, as a new revision, and applies it like any save.
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
Why, shown in the history. Only its first 200 characters are kept.
The id of the revision to put back. At least 1.
The version from the last read. At least 0.
Returns
200 The site already has that configuration. Nothing was started.
201 The change was saved as a new revision. Follow operation.
Fields of the 200 answer
The change to follow. Null when nothing was started.
The new revision. Null when nothing changed.
What was removed from a page, and other warnings.
Fields of each item
error stops a save; warning does not.
Fields of the 201 answer
The change to follow. Null when nothing was started.
The new revision. Null when nothing changed.
What was removed from a page, and other warnings.
Fields of each item
error stops a save; warning does not.
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 | managed_elsewhere | This site is read-only here. Change it in the control panel that manages it. |
409 | operation_in_progress | A change to the environment is in progress. Try again when it has finished. |
409 | restore_running | A restore is running on the site. Wait for it to finish, then try again. |
409 | stale | What you read has changed since you read it. Read it again, then send the change with its new version or quote. |
409 | switch_reconcile_failed | The maintenance switch could not be checked on the site, so nothing was changed. Try again shortly. |
422 | error_pages_locked | Corefinity has locked the environment's error pages. Contact support to change them. |
422 | invalid | Fix the field named in field; errors says why. |
422 | invalid_page | An error page cannot be saved as it is. Fix the errors the answer lists. |
422 | runtime_lacks_capability | The site's runtime does not support this yet. It is available after the site's platform update. |
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/error-pages/revert \
-H "Authorization: Bearer $COREFINITY_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"note": "Back to the first pages",
"revision_id": 311,
"version": 2
}'use Illuminate\Support\Facades\Http;
$response = Http::withToken(env('COREFINITY_TOKEN'))
->acceptJson()
->post('https://manage.corefinity.com/api/corestack/sites/1042/error-pages/revert', [
'note' => 'Back to the first pages',
'revision_id' => 311,
'version' => 2,
]);
$data = $response->json();const res = await fetch('https://manage.corefinity.com/api/corestack/sites/1042/error-pages/revert', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.COREFINITY_TOKEN}`,
Accept: 'application/json',
'Content-Type': 'application/json',
},
body: JSON.stringify({
note: 'Back to the first pages',
revision_id: 311,
version: 2,
}),
});
// 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/error-pages/revert",
headers={
"Authorization": f"Bearer {os.environ['COREFINITY_TOKEN']}",
"Accept": "application/json",
},
json={
"note": "Back to the first pages",
"revision_id": 311,
"version": 2,
},
)
data = res.json() if res.content else None{
"operation": null,
"revision": null
}{
"operation": {
"can_retry": false,
"completed_at": null,
"created_at": "2026-11-06T09:16:40Z",
"error": null,
"id": 5123,
"outcome": null,
"status": "committed",
"steps": [
{
"at": "2026-11-06T09:16:40Z",
"detail": "No problems",
"key": "check",
"label": "Check",
"state": "done"
},
{
"at": null,
"detail": null,
"key": "commit",
"label": "Commit",
"state": "current"
},
{
"at": null,
"detail": null,
"key": "apply",
"label": "Apply",
"state": "todo"
},
{
"at": null,
"detail": null,
"key": "verify",
"label": "Verify",
"state": "todo"
}
]
},
"revision": {
"id": 313,
"number": 3,
"status": "applying"
},
"warnings": []
}{
"message": "Unauthenticated."
}{
"code": "company_unavailable",
"message": "Your company is unavailable.",
"reason": "company_unavailable"
}{
"code": "feature_off",
"message": "Not found.",
"reason": "feature_off"
}{
"code": "managed_elsewhere",
"message": "This site is managed by another control panel",
"reason": "managed_elsewhere"
}{
"code": "error_pages_locked",
"message": "Corefinity has locked this environment's error pages. Contact support to change them.",
"reason": "error_pages_locked"
}{
"code": "rate_limited",
"message": "Too many attempts on this environment. Try again shortly.",
"reason": "rate_limited",
"retry_after_seconds": 60
}Try it is off for this endpointIt overwrites data that cannot be brought back. Copy the request and run it yourself when you are sure.