Documentation

disk.folder.rename

disk.folder.rename

Renames the folder.

The response contains the same structure as in disk.folder.get.

Parameters

Parameter Description
id Folder ID.
newName New name.

Example

BX24.callMethod(
		"disk.folder.rename",
		{
			id: 8,
			newName: 'New name'
		},
		function (result)
		{
			if (result.error())
				console.error(result.error());
			else
				console.dir(result.data());
		}
);




© «Bitrix24», 2001-2024
Up