disk.storage.addfolder
disk.storage.addfolder
Creates a folder in the storage root.
Returned structure is similar to the structure indicated in disk.folder.get.
Response example:
"result":{ "ID": "13", "NAME": "New", "CODE": null, "STORAGE_ID": "4", "TYPE": "folder", "PARENT_ID": "8", "DELETED_TYPE": "0", "CREATE_TIME": "2015-04-24T12:39:35+03:00", "UPDATE_TIME": "2015-04-24T12:39:35+03:00", "DELETE_TIME": null, "CREATED_BY": "1", "UPDATED_BY": "1", "DELETED_BY": "0", "DETAIL_URL": "https://test.bitrix24.com/workgroups/group/3/disk/path/New/" }
Parameters
Parameter | Description |
---|---|
id | Storage identifier. |
data | An array describing the folder. Mandatory field NAME contains the name of a new folder. |
Example
BX24.callMethod( "disk.storage.addfolder", { id: 4, data: {'NAME': 'New'} }, function (result) { if (result.error()) console.error(result.error()); else console.dir(result.data()); } );
© «Bitrix Inc.»,
2001-2021,
«Bitrix Inc.», 2021
User Comments
User comments are not part of official documentation. Use information provided by other users in the comments at your own risk.The User Comments section is not to be used as a feature discussion board. Only registered users can post comments. Your comment will be visible once it has been approved by the moderator.