tc_upload_new_version
Upload a local file as a new version of an existing file in Trimble Connect, preserving version history and setting it as the latest revision. Requires confirmation and write permission.
Instructions
Upload a file as a NEW VERSION of an existing file in that folder.
The existing file keeps its history; the uploaded content becomes the latest revision that everyone will see. Requires TC_ENABLE_WRITE=1 AND confirm=true.
Args: project_id: Project ID. folder_id: Folder that already contains the file. local_path: Full path of the new content on this computer. name: Name of the existing file in Trimble Connect (default: the local file name) — it must match exactly, otherwise a new file is created instead. confirm: Must be true — safety gate.
Returns: {"uploaded": true, "file_id", "version_id", "revision", ...}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| confirm | No | ||
| folder_id | Yes | ||
| local_path | Yes | ||
| project_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |