CreateDocumentFolder

Creates a new document folder

This method can be used to create a new document folder within an existing document folder, whilst child folders can also be created to nest within it.

Please note that the root document folder ID is 0.

SOAP action: http://apiconnector.com/v2/ApiService/CreateDocumentFolder

📘

Input and output parameters

The input and output parameters for this method are:

Input parameters

  • Folder ID - required; integer
  • Name - required; string

Output parameters

  • CreateDocumentFolderResult
    • DocumentFolder
      • Id - integer
      • Name - string
      • ChildFolders - array of DocumentFolder
        • DocumentFolder
          • Id - integer
          • Name - string
          • ChildFolders - array of DocumentFolder
            • DocumentFolder
              • Id - integer
              • Name - string
              • ChildFolders - array of DocumentFolder
                • DocumentFolder...is recursive

Example

using (var client = new ApiServiceClient())
{
	client.ClientCredentials.UserName.UserName = "username";
	client.ClientCredentials.UserName.Password = "password";

	var parentFolderId = 1;
	var folder = new ApiDocumentFolder { Name = "TestDocumentFolder" };
	var createdFolder = client.CreateDocumentFolder(parentFolderId, folder);
}