Moving a Folder

You can use the moveFolder call to move files and subfolders of a folder.

Sample URL

https:/hostname:port/context/rest/v2/documents/moveFolder/{id}

Method

POST

Parameters

Parameter Description
targetId Optional.

The target document folder ID.

If the target folder is a root folder, do not send this parameter.

id The source document ID in the URL.

Response

The call returns the moved document object in JSON format.

Example:

{"createdOn":1376674654662,"id":"138G000007D6","latestVersion":0,"parentId":"138G000007D3","dateModified":0,"users":"O:ian:A;O:tom: A","createdBy":"ian","shareId":"138G000007D3","name":"CCCCC","lastUpdatedOn":1377006776662,"type":"D","size":0}