Skip to content

Restore trashed node

Start from the script setup block, then add the snippet code below.

Restore a trashed node. Requires write:hierarchy.

# ... script setup ...
NODE_ID = "your-trashed-node-id"
api_patch(f"/v1/nodes/{NODE_ID}/restore", {})
print(f"Restored {NODE_ID}")