You are here

You are here

Move a Folder

The Move method is used to move any SCMBaseObject, including folders.  The method requires the object Id of the source folder 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 folders and move them to a target folder.  If more than 100 folders need to be moved, it is recommended to make multiple calls of 100 folders..

Vertical Tabs

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