--- sidebar_position: 8 --- # Copy file Copy file from one destination to another `Function MakeCopyFile(Val URL, Val FileID, Val FolderID, Val Token = "") Export` | Parameter | CLI option | Type | Description | |-|-|-|-| | URL | --url | String | URL of webhook or a Bitrix24 domain, when token used | | FileID | --fileid | String, Number | Original file ID | | FolderID | --folderid | String, Number | ID of copy destination folder | | Token | --token | String | Access token, when app auth method used | Returns: Map Of KeyAndValue - serialized JSON of answer from Bitrix24 API
:::tip Method at API documentation: [disk.file.copyto](https://dev.1c-bitrix.ru/rest_help/disk/file/disk_file_copyto.php) :::
```bsl title="Code example" FolderID = "5014"; FileID = "5010"; URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/"; Result = OPI_Bitrix24.MakeCopyFile(URL, FileID, FolderID); FolderID = "5016"; URL = "b24-ar17wx.bitrix24.by"; Token = "fe3fa966006e9f06006b12e400000001000..."; Result = OPI_Bitrix24.MakeCopyFile(URL, FileID, FolderID, Token); Check_BitrixObject(Result); ``` ```sh title="CLI command example" oint bitrix24 MakeCopyFile --url %url% --fileid %fileid% --folderid %folderid% --token %token% ``` ```json title="Result" ```