Added API to rename inventories