src/apis/StorageController.php
public function actionFolderCreate()
    {
        $this->checkRouteAccess(self::PERMISSION_ROUTE);
        
        $folderName = Yii::$app->request->post('folderName', null);
        $parentFolderId = Yii::$app->request->post('parentFolderId', 0);
        $response = Yii::$app->storage->addFolder($folderName, $parentFolderId);
        $this->flushApiCache();
        
        return $response;
    }
public function actionFolderCreate()
    {
        $this->checkRouteAccess(self::PERMISSION_ROUTE);
        
        $folderName = Yii::$app->request->post('folderName', null);
        $parentFolderId = Yii::$app->request->post('parentFolderId', 0);
        $response = Yii::$app->storage->addFolder($folderName, $parentFolderId);
        $this->flushApiCache();
        
        return $response;
    }
public function actionFolderCreate ( ) { $ this -> checkRouteAccess ( self :: PERMISSION_ROUTE ) ; $ folderName = Yii :: $ app -> request -> post ( 'folderName' , null ) ; $ parentFolderId = Yii :: $ app -> request -> post ( 'parentFolderId' , 0 ) ; $ response = Yii :: $ app -> storage -> addFolder ( $ folderName , $ parentFolderId ) ; $ this -> flushApiCache ( ) ; return $ response ; }
Create a new folder pased on post data.

@return boolean
Create a new folder pased on post data .