corestack_ deployments_ template_ restore
Restore a deployment template version.
When to use it
Restore an earlier revision of your company's deployment template (version_id, from corestack_), or every stage back to Corefinity's default (version: "corefinity"). It is saved as a new revision equal to the chosen one and written into every environment it reaches, as a save is. Call it with dry_run: true first and confirm production as a stage save does. Restoring needs write only. It applies to the whole company.
The same action in the public REST API, with the same checks, refusals and scope: POST /.
Ask for it
Using the Corefinity MCP server, call corestack_deployments_template_restore with platform magento2, version_id 3, revision 5, dry_run true. (Restore a deployment template version.) Tell me what it returned.Inputs
The production count of the dry run. At least 0.
The dry run's production[].site_id.
Answer the reach; write nothing.
site_ids that keep their own stage: every cannot_take one.
magento2laravelwordpressshopware5The template revision you read. At least 0.
Instead of version_id: every stage back to Corefinity's default.
corefinityThe revision to restore (corestack_). At least 1.
Your assistant fills in a confirmation only after you agree.
Example call
{
"name": "corestack_deployments_template_restore",
"arguments": {
"platform": "magento2",
"version_id": 3,
"revision": 5,
"dry_run": true
}
}If it is refused
| Reason | What to do |
|---|---|
forbidden | The person's role lacks the Edit Environment Deployment Pipeline permission, which every change to the company's templates, variables and registry secrets needs (they reach every environment that follows the template). The message names it and says an owner of the company can grant it in Roles; details.permission is editEnvironmentDeploymentPipeline. Nothing is changed. |
version_unavailable | That revision is not kept for this template. |
stale | The template changed since you read it; read it again and resend. |
template_locked | Corefinity has locked this template. |
reach_changed | The production environments changed since your dry run; run it again and confirm the new list. |
confirm | Production is reached; send the confirmation from the dry run. |
template_refused_on | An environment cannot take it; add it to keep_on. |
invalid_arguments | The arguments do not match the tool's input schema, or the Control Panel refused a field. Fix the fields named in the answer and call again. |
tenant_mismatch | The object does not exist or the token may not see it. Check the id. |
scope_required | The token lacks a scope this call needs. Open the link in the answer to add it, then call again. |
pin_refused | The 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_limited | Too many calls. Wait for the number of seconds the answer names. |
temporarily_unavailable | The Control Panel could not answer just now. Nothing was started; try again shortly. |
internal_error | Something went wrong on our side. Quote the trace id to support. |