tc_copy_file
Copy a file into another folder in Trimble Connect. Provide project, source file, and target folder; optionally copy a specific version, metadata, or merge as new revision.
Instructions
Copy one file into another folder (server-side copy).
Requires TC_ENABLE_WRITE=1.
Args: project_id: Project ID (source and target must be the same project). file_id: Source file ID. target_folder_id: Destination folder ID. version_id: Optional specific version to copy; default = latest. copy_metadata: Also copy the file's metadata/attributes. merge_existing: If a file with the same name exists in the target, add the copy as a NEW REVISION of it instead of failing. Cannot be combined with copy_metadata.
Returns the new file object with {"copied": true}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | ||
| project_id | Yes | ||
| version_id | No | ||
| copy_metadata | No | ||
| merge_existing | No | ||
| target_folder_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |