restore_content
Bring a trashed item and its descendants back to their original tree position without republishing; returns restored count and fails if the parent is trashed or its URL is taken.
Instructions
Bring a trashed item back to its old place in the tree, together with the descendants that were trashed with it. Restored content is NOT republished — call publish for each locale that should go live. Refused if its parent is still in the trash or a live sibling took its URL meanwhile. Returns {restored: }. Find trashed ids with list_trash.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | Site slug or id to act in (multisite). Omit to use this server's default site. Call list_sites to see what exists — an empty tree or search usually means the wrong site, not missing content. | |
| documentId | Yes | The item's documentId (stable across locales and versions), e.g. from tree, list_pages or get_content. |