Rename media¶
Changes the name of one media item and saves it.
Syntax¶
Examples¶
Rename by path:
Rename by key:
Behavior¶
Renaming an item changes the name segment used by UmbraScript media paths. Retain the item key when a later command must target the renamed item.
Result¶
The result contains key, oldName, newName, success, and message.
Permissions¶
Requires access to the UmbraScript section and a signed-in backoffice user for the save operation.
Common failures¶
- The reference does not resolve to exactly one media item.
- The path is ambiguous.
- Umbraco rejects the name or save operation.