Rename content¶
Changes the name of one content item and saves it.
Syntax¶
Examples¶
Rename by path:
Rename by key:
Behavior¶
The command saves the new name but does not publish the item. A rename can change the draft route, so retain the item key when a later command must target the same 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 content item.
- The new name is not accepted by Umbraco.
- The current user is unavailable for the save operation.