public function createFolder(Folder $folder, $parentId = 0, $inheritAccess = null)
    {
        $parameters = [
            'query' => ['parentId' => $parentId],
            'body' => json_encode(['folder' => $folder, 'inheritAccess' => $inheritAccess], JSON_UNESCAPED_UNICODE),
            'headers' => [],
        ];

        $result = $this->post('v1/folders', $parameters);
        $result = new FolderResponse($result);

        return $result;
    }
public function createFolder(Folder $folder, $parentId = 0, $inheritAccess = null)
    {
        $parameters = [
            'query' => ['parentId' => $parentId],
            'body' => json_encode(['folder' => $folder, 'inheritAccess' => $inheritAccess], JSON_UNESCAPED_UNICODE),
            'headers' => [],
        ];

        $result = $this->post('v1/folders', $parameters);
        $result = new FolderResponse($result);

        return $result;
    }
public function createFolder ( Folder $ folder , $ parentId = 0 , $ inheritAccess = null ) { $ parameters = [ 'query' => [ 'parentId' => $ parentId ] , 'body' => json_encode ( [ 'folder' => $ folder , 'inheritAccess' => $ inheritAccess ] , JSON_UNESCAPED_UNICODE ) , 'headers' => [ ] , ] ; $ result = $ this -> post ( 'v1/folders' , $ parameters ) ; $ result = new FolderResponse ( $ result ) ; return $ result ; }
Create a Folder.

@param  Folder         $folder        A JSON encoded Folder to create
@param  int            $parentId      An optional parent folder ID. Will otherwise be created in the root level. Note that root level creation requires additional access!.
@param  bool           $inheritAccess Decides whether this Folder will inherit access from its parent folder
@return FolderResponse
Create a Folder .