copy_item
Copy files or folders in OneDrive or SharePoint by specifying the item ID or path and destination folder.
Instructions
Copy a file or folder in OneDrive or SharePoint
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| itemId | No | Item ID to copy | |
| itemPath | No | Alternative: item path to copy | |
| destinationFolderId | No | Destination folder ID | |
| destinationFolderPath | No | Alternative: destination folder path | |
| newName | No | New name for the copied item (optional) | |
| siteId | No | SharePoint site ID (optional) | |
| site | No | Known SharePoint site alias or canonical URL | |
| siteUrl | No | Canonical SharePoint site URL (optional alternative to siteId) | |
| driveId | No | Drive ID for a specific document library (optional) | |
| destinationSiteId | No | Destination SharePoint site ID (optional) |