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()); } );
© «Bitrix24», 2001-2024