Move small file
The moveSmallFile tool is designed for efficiently relocating files within Microsoft 365 SharePoint document libraries. It facilitates moving files smaller than 5MB between folders on the same site, enhancing document management workflows.
Features
- Supports moving files within the same SharePoint document library or drive.
- Handles files less than 5MB ensuring quick and reliable transfers.
- Incorporates concurrency control with ETag to prevent overwriting of changes.
- Enables specifying target folders by folder ID for precise file placement.
- Optimized for SharePoint sites, ensuring compatibility and seamless integration.
Benefits
- Streamlines file organization and management within SharePoint libraries.
- Reduces manual effort in moving files across folders on the same site.
- Prevents data conflicts via built-in concurrency control using ETag verification.
- Speeds up document library maintenance with reliable in-place file moves.
- Improves collaboration by keeping files correctly positioned within shared document structures.
Description
Use this tool for SharePoint document libraries or when you need to specify a drive.Move a file (also referred to as a DriveItem) located in a specified Document Library (also referred to as a Drive) to another folder.This tool only supports moves for files less than 5MB and moves that are within the same site.Files cannot be moved between Drives using this request.
Parameters
4 parameters
| Name | Type | Description |
|---|---|---|
| documentLibraryIdrequired | string | Id of the Document Library (also called as a Drive) of the file you want to move |
| fileIdrequired | string | — |
| newParentFolderIdrequired | string | The ID of the target folder to move the file into.Should be in the same document library as the original location of the file. |
| etag | string | ETag value for concurrency control via HTTP 'If-Match' header. Move succeeds only if driveItems's current ETag matches (prevents overwriting concurrent changes). If mismatch returns 412 Precondition Failed error. |