Restore media¶
Restores one media item from the Umbraco recycle bin.
Syntax¶
Example¶
Use a key because a recycled item's former media path may no longer resolve:
Result¶
The result contains key, name, success, and result.
Permissions¶
Requires access to the UmbraScript section and a signed-in backoffice user for the restore operation.
Common failures¶
- The key cannot be found.
- The reference does not resolve to exactly one media item.
- Umbraco cannot determine or use a restore destination.
- The current user cannot perform the restore operation.