Documentation

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());
		}
);





© «Bitrix24», 2001-2024