CreateFolder() public method

Creates a Folder in the specified Folder.

It mirrors To the following Smartsheet REST API method:
POST /folders/{folderId}/folders

if any argument is null or empty string if there is any problem with the REST API request if there is any problem with the REST API authorization (access token) if the resource cannot be found if the REST API service is not available (possibly due To rate limiting) if there is any other error during the operation
public CreateFolder ( long folderId, Folder folder ) : Folder
folderId long the parent folder Id
folder Folder the folder To create
return Folder
Example #1
0
        public virtual void TestCreateFolder()
        {
            server.setResponseBody("../../../TestSDK/resources/createFolder.json");

            Folder newFolder     = new Folder.CreateFolderBuilder("New folder").Build();
            Folder createdFolder = folderResource.CreateFolder(123L, newFolder);

            Assert.AreEqual(createdFolder.Name, newFolder.Name);
        }