Box Trash Restore Function - how to restore to new Parent if orig Parent still exists
I have a question with regards to Box Trash Restore Folder function
https://developer.box.com/guides/trash/restore-folder/
We were planning to use the Box Trash Restore function in our application. We wanted to restore the Folder stored in Trash into a new Folder location. We found that the restoreFolder API would NOT restore to the new specified Parent ID if the original Parent ID existed.
The only way we could get it to restore to the new specified Parent ID if we first deleted the original Parent ID.
Is there any way we can get it to restore the folder in the new specified Parent ID if the original Parent ID still exists?
Is this a bug or something that can be fixed to work this way?
Example:
String origParentID = "125367";
String newName = "My Documents ORIGINAL";
String newParentID = "98765";
BoxTrash trash = new BoxTrash(api);
trash.restoreFolder(origParentID, newName, newParentID);
The folder in trash was restored in origParentID = "125367".
We wanted the folder to be restored in newParentID = "98765";
Thanks so much for your help!
Please sign in to leave a comment.
Comments
0 comments