Roll back a site
artifact_site_rollbackRestore an earlier version of a published artifact as the current version without changing its address or history. Use to undo an update or publication.
Instructions
Restore an earlier remote artifact version as a new current version, keeping the address and history. Use when the user explicitly wants to undo a publication/update. Get version IDs with get_site include:[versions]. This changes current contents; establish the user's intended version before calling. Returns the new version identifier.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | Artifact identifier returned by find/publish, or the slug in its /s/ URL. Not a local path. | |
| tenant_id | No | Destination tenant for creation; defaults to the account tenant. | |
| version_id | Yes | Historical version to restore, from get_site with versions included. | |
| share_token | No | Token from a user-provided share URL; carries only that share permission. |