SP.File.moveTo Method (sp.js)
Moves the file to the specified destination URL.
Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013
SP.File.moveTo()
Return value
Undefined
REST resource endpoint
See File resource for more information.
Endpoint URI structure
http://<sitecollection>/<site>/_api/web/folders/getbyurl(folderrelativeurl)/files/getbyurl(filerelativeurl)/moveTo(newUrl,flags)
HTTP requests
This resource supports the following HTTP commands:
- POST
POST syntax
POST http://<sitecollection>/<site>/_api/web/folders/getbyurl(folderrelativeurl)/files/getbyurl(filerelativeurl)/moveTo(newUrl,flags)
Resource parameters
newUrl
flags
Parameters
newUrl
flags