You are here

You are here

Move a Document

The Move method is used to move any SCMBaseObject, including documents.  The method requires the object Id of the source document and the target folder to move it to.  There is no return parameter.  If the move is unsuccessful an exception will be thrown.

The API also exposes a MoveMultiple method that can take an array of source documents and move them to a target folder.  If more than 100 documents need to be moved, it is recommended to make multiple calls of 100 documents.

Vertical Tabs

c#
string documentId = "<Source document Id retrieved by other method calls>";
string folderId = "<Target folder Id retrieved by other method calls>";
 
springCMService.Move(token, SCMObjectType.Document, documentId, folderId);
java
String documentId = "<Source document Id retrieved by other method calls>";
String folderId = "<Target folder Id retrieved by other method calls>";
 
springCMService.move(token, SCMObjectType.Document, documentId, folderId);