Undo last publish or discard draft
undoOne-step undo. what: 'last_publish' reverts the most recent publish (restored=false when there is nothing to undo); what: 'draft' discards every unpublished change so the draft matches the live site (reset=false when the site was never published; needs confirm: true, so ask first). Neither touches the other: discarding the draft keeps the publish undo available.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| what | Yes | 'last_publish': undo the most recent publish — the live site (or the one page/item that publish shipped) goes back to what was live before it. 'draft': throw away every saved-but-unpublished change so the draft matches what is live ("scrap those changes"). | |
| confirm | No | Required true for what: 'draft' — it discards unpublished work, so ask the owner first. | |
| site_id | Yes |