Copy an Item
Copies a folder or file item between the specified share folders.
URI Template
POST: services/builtin/FileOperationService.svc/Item/copy?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/copy?originalPath=%5C%5Ccontoso-server%5CCompany%5CdevDemo.txt&newPath=%5C%5Ccontoso-server%5CCompany%5CdevDemo-copy.txt
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 |
---|---|
400 | One of the parameters is invalid. |
401 | Access to the requested resource is denied. |
404 | The source item does not exist. |
409 | The target item already exists. |