Put a restore point back
restore_catalog_snapshotPut a catalog back to how it was at a restore point from list_catalog_snapshots — its pages, products, design and settings. Everything changed since that point is undone, including the merchant's own edits in the editor; the catalog's publish state and public link are left as they are. The state being replaced is stored first, so a restore can itself be undone. Destructive, so it runs only on a call with confirm: true; without it nothing changes and the answer lists what would be undone under requiresConfirmation, for the merchant to approve. The snapshotId comes from list_catalog_snapshots; the newest point with reason "assistant" is the state before the last assistant change.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | true once the merchant has agreed to the restore listed under requiresConfirmation | |
| catalogId | Yes | Catalog id, as returned by list_catalogs | |
| snapshotId | Yes | Restore point id, as returned by list_catalog_snapshots |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| applied | Yes | ||
| catalog | No | ||
| restored | No | ||
| catalogId | No | ||
| snapshotId | No | ||
| confirmWith | No | The arguments that carry the change out once the merchant agrees | |
| safetySnapshotId | No | The state just replaced, so the restore can be undone | |
| requiresConfirmation | No | Present when nothing was changed: the consequences to show the merchant before calling again with confirm: true |