Update SharePoint Folder name using Power Automate

We can rename the SharePoint folder using Power automate. We can update the SharePoint document library folder using the steps below.

On Power Automate, add new Action, Send HTTP request,

In the Send HTTP request, we can pass details as below,


Site Address: 
<<SharePoint Site Address>>

Method: "POST"
Uri: "_api/web/GetFolderByServerRelativeUrl('Shared Documents/<<OLD Folder Name>>')/ListItemAllFields"
Headers
  • If-Match: *
  • X-HTTP-Method: MERGE
  • Accept: Application/json;odata-verbose
Body: {
              "Title": "<<NEW FOLDER NAME TO BE UPDATED>>",
              "FileLeafRef": "<<NEW FOLDER NAME TO BE UPDATED>>"
            }


 

Comments