Actions16
Folder → Rename
AI-generatedSummary
Rename a folder in the selected OneDrive or SharePoint location.
Inputs
- driveType — Type of drive to access (User Drive, SharePoint Site Drive, Shared Folder (Link))
- sharedLinkUrl (required) — Paste the sharing link of the shared folder (right-click → Share → Copy link in OneDrive/SharePoint)
- userId — User email or ID; if empty uses the authenticated user
- siteId (required) — The SharePoint site to access
- folderSelection — How to specify the folder (Browse, By Path, By ID, By Sharing Link)
- browseFolderF1 — Choose from the list, or specify an ID using an expression
- browseFolderF2 — Select a subfolder to go deeper, or leave as is to use Level 1 as the target
- browseFolderF3 — Select a subfolder to go deeper, or leave as is to use Level 2 as the target
- browseFolderF4 — Select a subfolder to go deeper, or leave as is to use Level 3 as the target
- browseFolderF5 — Select the deepest target folder here, or leave as is to use Level 4 as the target
- folderPath (required) — The folder to operate on (full path from root)
- folderId (required) — The unique ID of the folder; use "root" for the root folder
- newName (required) — The new name for the folder
Output shape
a single folder record (the updated folder)
Returns the folder metadata (including ID and name); no pagination applies
Examples
Example 1: Rename a user's OneDrive folder identified by its ID
driveType=user, folderId=12345, newName=Projects
Example 2: Rename a shared folder using its sharing link
driveType=sharedLink, sharedLinkUrl=https://1drv.ms/f/..., newName=Archive
Example 3: Rename a folder in a SharePoint site using its site ID
driveType=site, siteId=contoso.sharepoint.com, folderId=root, newName=Docs