Batch Restore Items
restore_itemsRestore multiple soft-deleted items from the trash by specifying items or using filters like entity type, age, or all. Recover batch deletions with a summary.
Instructions
Restore many soft-deleted items at once (batch recover from the trash). Provide either an explicit items list (entity_type + entity_id pairs) OR filters: entity_type, older_than_days, or all. Restores are reversible - you can delete the items again - so this executes directly and returns a summary of what was recovered. Use purge_items to permanently delete instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | Filter: every recoverable item in the trash. | |
| days | No | Filter look-back window in days. Defaults to 30. | |
| items | No | Explicit items to restore. Provide this OR filters. | |
| entity_type | No | Filter: only this entity type. | |
| older_than_days | No | Filter: only items deleted more than N days ago. |