disk.file.rename
disk.file.rename
Renames the file.
The response contains the same structure as in disk.file.get.
Parameters
Parameter | Description |
---|---|
id | File ID. |
newName | New name. |
Example
BX24.callMethod( "disk.file.rename", { id: 10, newName: 'Newname for file.png' }, function (result) { if (result.error()) console.error(result.error()); else console.dir(result.data()); } );
© «Bitrix24», 2001-2024