Documentation

disk.folder.get

disk.folder.get

Returns a folder by ID.

Response example:

"result": {
    "ID": "8", //identifier
    "NAME": "newfolder", //folder name
    "CODE": null, //symbol code
    "STORAGE_ID": "4", //storage ID
    "TYPE": "folder",
    "PARENT_ID": "12",  //parent folder ID
    "DELETED_TYPE": "0", //deletion token
    "CREATE_TIME": "2015-04-24T10:41:51+03:00", //time of creation
    "UPDATE_TIME": "2015-04-24T15:52:43+03:00", //time of update
    "DELETE_TIME": null, //time of moving an element to recycle bin
    "CREATED_BY": "1", //id of a user who created the file
    "UPDATED_BY": "1", //id of a user who updated the file
    "DELETED_BY": "0", //id of a user who moved the file to recycle bin
    "DETAIL_URL": "https://test.bitrix24.com/workgroups/group/3/disk/path/newfolder"  //link to view the list of files in the folder
}

Parameters

Parameter Description
id Folder ID.

Example

BX24.callMethod(
		"disk.folder.get",
		{
			id: 8
		},
		function (result)
		{
			if (result.error())
				console.error(result.error());
			else
				console.dir(result.data());
		}
);




© «Bitrix24», 2001-2024
Up