--- sidebar_position: 8 description: Copy object and other functions to work with Dropbox in the Open Integration Package, a free open-source integration library for 1C:Enterprise 8, OneScript and CLI keywords: [1C, 1С, 1С:Enterprise, 1С:Enterprise 8.3, API, Integration, Services, Exchange, OneScript, CLI, Dropbox] --- import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; # Copy object Copies a file or directory to the selected path `Function CopyObject(Val Token, Val From, Val Target) Export` | Parameter | CLI option | Type | Required | Description | |-|-|-|-|-| | Token | --token | String | ✔ | Token | | From | --from | String | ✔ | Path to the original object | | Target | --to | String | ✔ | Target path for the new object | Returns: Map Of KeyAndValue - serialized JSON response from Dropbox
```bsl title="1C:Enterprise/OneScript code example" Original = "/New/pic.png"; Copy = "/New/pic_copy.png"; Token = "sl.u.AGCV5bFAEGMHdc0cW0wuRSU8nduEEjAsajtP1ta3Vw4D6k7ivqMiVj2QuaBqy1n9RZhUrftIcKDKh8XtftjcKoA4KBUyY3W5fiUANoMPG6j3Q7Cj--vAoOk9aDWk2ZvsDH_hLA1L5-PlvgA4SyTbNJb8QK3AJh4UX71iKOJUYtb1YDy81VRf4XWiBHyXMoD14rr07VggYfiAIHaMpgJUxkwVSGbiPxD7UlBK8zJC5kwOJqBss7pc5i7Tslne5nt2fno80MmEV_EJoi75M5kpCP2CdLEdChfFLwFNADZq6ox3OGxJ4d8TFI6aZ7Ue1yGJd67Ye2LJ3GnmpkdcKyH1Ovh_sV4slW46OLh1dJQbFdNrgILYXHaoJJrMDJodn6YR8cTWmWQ7IIlw-trIEcIBbPzPtiI3F7xW_5KGD7C3NkmDaCUD4PBnaWI-XplRHQR_RQjMTqW3SWO0sg6RcriVDAKyA6RB8zS6qwfwj23i1RwDM0e2nwrgl6XG9RSKhGYHy1jj2d_YAU9vxw61x2VFF1ILNS7833SYZ5kIDrjjhqUeKD5MoCAz6YxyE0xfSZhRZ4B8ONLeSf6SOOYVSKLi4DxMxurzFC90j0u6KFVsdYiUfeoTXarehRMafAbSnszOJcXQqevbDfsGKtbbHFQUyCaoUkia90jKnIB5W1q2Ksp1QKUcKudSiCPRT7DPRXE1LGK2WsjfmdMJyqbBSb86Yfa0ZJ8i0QT..."; Result = OPI_Dropbox.CopyObject(Token, Original, Copy); ``` ```bash oint dropbox CopyObject \ --token "***" \ --from "/New/pic.png" \ --to "/New/pic_copy.png" ``` ```batch oint dropbox CopyObject ^ --token "***" ^ --from "/New/pic.png" ^ --to "/New/pic_copy.png" ``` ```json title="Result" { "metadata": { ".tag": "file", "name": "pic_copy.png", "path_lower": "/new/pic_copy.png", "path_display": "/New/pic_copy.png", "id": "id:kJU6-a-pT48AAAAAAABYZw", "client_modified": "2025-10-07T14:39:51Z", "server_modified": "2025-10-07T14:40:36Z", "rev": "640928d158ff6bd841553", "size": 2114023, "is_downloadable": true, "content_hash": "0f3b18c255b0f252bd326cacc04c15c3aa57bd6b8234adb65aa7bb2987a65492" } } ```