Change id of new folder in filemanager

Hi, load file manager’s tree dyn, but when i create a new folder, i assign an id, and return a json with the new id, the problem is that when i try to rename that folder, id is the id that filemanager assigns, so i can´t update it and needs to load the page.
I tried to user updateItem function to change the id and it doesn´t work, i also load the branch but it duplicates the folder, one with the id that i assigned and the one from filemanager.

So how can change that ID to rename the folder?

Never mind, i found out how :smile: