disk.folder.addsubfolder
disk.folder.addsubfolder
Creates a subfolder.
The response contains the same structure as in disk.folder.get.
Response example:
"result":{ "ID": "13", "NAME": "New sub folder", "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 | Folder ID. |
data | An array describing the folder. Mandatory field NAME contains the name of the new folder. |
Example
BX24.callMethod( "disk.folder.addsubfolder", { id: 8, data: { NAME: 'New sub folder' } }, 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.