Is there a way in CSOM wherein I can rename document library using CSOM like we do in SPD(renaming the root folder)?

I tried several ways e.g updateTitle,FileLeafRef. Also tried to rename a folder etc but nothing seems to work.

I would like to know if is this possible at all?


1 Answer 1


Please reference https://sharepoint.stackexchange.com/a/137221/75930

It seems to do what you are asking in SharePoint 2013, you should use the Folder.MoveTo method to create a copy under a new name, and then delete the old.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.