CorefinityCorefinityDocs
Open the Control PanelControl Panel
Deployments · 7 of 65

corestack_deployment_rollback

Roll back a deployment.

Scope writeRuns as a taskNo secrets returnedCoreCluster
On this page

When to use it

Go back to an earlier deployment's release. It runs as a new deployment.

After a converted site's first Git deployment, corestack_deployments_get can offer the site's files from before that deployment as releases.previous with before_git: true (its id is usually initial). Roll back to them with deployment_id = the current deployment and release_id = that id. It runs as a new deployment too, named "Rollback to the release before Git deployments". It is accepted only while it is offered.

Ask for it

Prompt
Using the Corefinity MCP server, call corestack_deployment_rollback with site_id 4211, deployment_id 6610. (Roll back a deployment.) Tell me what it returned.

Inputs

deployment_idintegerRequired

The deployment to go back to. At least 1.

release_idstring

A release of that deployment; its own when left out. Or the releases.previous id corestack_deployments_get offers with before_git (the site's files from before its first Git deployment). Up to 64 characters.

site_idintegerRequired

At least 1.

Example call

tools/call
{
  "name": "corestack_deployment_rollback",
  "arguments": {
    "site_id": 4211,
    "deployment_id": 6610
  }
}

If it is refused

ReasonWhat to do
forbiddenThe person's role lacks the Rollback Deployments permission. The message names it and says an owner of the company can grant it in Roles; details.permission is rollbackDeployments. Nothing is changed.
invalid_arguments"There is no earlier release to roll back to": the release is not one you can roll back to now — not a kept successful deployment's, the current one, or a before_git release that is no longer offered. Read corestack_deployments_get again.
artifact_prunedThat deployment's archive was removed after 30 days, so it can't be rolled back to. Deploy again from the branch or commit (corestack_deployment_trigger). Archives are kept for 30 days, and always for a site's 10 most recent deployments and its newest successful one.
managed_elsewhereAnother control panel manages this site, so use that control panel for it. This is refused before anything else about the site, as in the Control Panel and the API. Nothing was done.
tenant_mismatchThe object does not exist or the token may not see it. Check the id.
scope_requiredThe token lacks a scope this call needs. Open the link in the answer to add it, then call again.
pin_refusedThe grant is limited to chosen clusters, sites or environments, and this call is outside them. Open the link in the answer to widen it.
rate_limitedToo many calls. Wait for the number of seconds the answer names.
temporarily_unavailableThe Control Panel could not answer just now. Nothing was started; try again shortly.
internal_errorSomething went wrong on our side. Quote the trace id to support.

The same task elsewhere

Was this helpful?
Open in ClaudeOpen in ChatGPT