CorefinityCorefinityDocs
Open the Control PanelControl Panel
Error pages · 6 of 12

Reset error pages to the defaults

Goes back to the platform's pages and settings, as a new revision. The history is kept.

POST/api/corestack/sites/{site}/error-pages/reset

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

notestring or null

Why, shown in the history. Only its first 200 characters are kept.

versionintegerRequired

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
operationobject or any or nullRequired

The change to follow. Null when nothing was started.

revisionobject or any or nullRequired

The new revision. Null when nothing changed.

warningsarray of objects

What was removed from a page, and other warnings.

Fields of each item
codestringRequired
columninteger or null
lineinteger or null
messagestringRequired
pagestring
severitystringRequired

error stops a save; warning does not.

Fields of the 201 answer
operationobject or any or nullRequired

The change to follow. Null when nothing was started.

revisionobject or any or nullRequired

The new revision. Null when nothing changed.

warningsarray of objects

What was removed from a page, and other warnings.

Fields of each item
codestringRequired
columninteger or null
lineinteger or null
messagestringRequired
pagestring
severitystringRequired

error stops a save; warning does not.

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.
409managed_elsewhereThis site is read-only here. Change it in the control panel that manages it.
409operation_in_progressA change to the environment is in progress. Try again when it has finished.
409restore_runningA restore is running on the site. Wait for it to finish, then try again.
409staleWhat you read has changed since you read it. Read it again, then send the change with its new version or quote.
422error_pages_lockedCorefinity has locked the environment's error pages. Contact support to change them.
422invalidFix the field named in field; errors says why.
422invalid_pageAn error page cannot be saved as it is. Fix the errors the answer lists.
422runtime_lacks_capabilityThe site's runtime does not support this yet. It is available after the site's platform update.
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/error-pages/reset \
  -H "Authorization: Bearer $COREFINITY_TOKEN" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "version": 2
  }'
{
  "operation": null,
  "revision": null
}
Try it

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.

Was this helpful?
Open in ClaudeOpen in ChatGPT