다음을 통해 공유


Move an Item

 

Moves a folder or file item between the specified share folders.

URI Template

services/builtin/FileOperationService.svc/Item/move?newpath={newpath}&originalPath={originalPath}

OriginalPath
The original UNC path, including the file name, of the item.

newPath
The new UNC path, including the file name, of the item.

Sample Request

POST https://www.contoso.com/services/builtin/fileoperationservice.svc/item/move?originalPath=%5C%5Ccontoso-server%5CCompany%5CdevDemo.txt&newPath=%5C%5Ccontoso-server%5CCompany%5CdevDemo-copy.txt HTTP/1.1  
Accept: application/xml  
Cookie: ASP.NET_SessionId=********************  
Canary: *********************  
Host: domainname  
Content-Length: 0  
  

Sample Response

HTTP/1.1 200 OK  
  

Error Codes

Error Code Error Message
409 The target item already exists.
404 The source item does not exist.
401 Access to the requested resource is denied.
400 One of the parameters is invalid.