tc_comments
List, get, create, update, and delete comments on Trimble Connect objects (files, folders, todos, views). Also manage attachments and reactions.
Instructions
Trimble Connect Comments (on files, folders, todos, views…) incl. attachments and reactions. Select the endpoint with the "action" parameter. Path placeholders {projectId}/{id}/{subId}/{extraId}/{version} are filled from the matching input parameters. Actions:
list: GET /comments — query: {objectId, objectType} e.g. objectType=TODO|FILE|FOLDER|VIEW
get: GET /comments/{id} — id=commentId
create: POST /comments — body: {objectId, objectType, description...}
update: PATCH /comments/{id} — id=commentId, body: {description...}
delete: DELETE /comments/{id} — id=commentId
list_attachments: GET /comments/{id}/attachments — id=commentId
add_attachments: POST /comments/{id}/attachments — id=commentId, body: {attachments:[fileIds]}
remove_attachments: DELETE /comments/{id}/attachments — id=commentId, body: {attachments:[fileIds]}
list_reactions: GET /comments/{id}/reactions — id=commentId
add_reaction: POST /comments/{id}/reactions — id=commentId, body: {reaction}
delete_reaction: DELETE /comments/{id}/reactions/{subId} — id=commentId, subId=reactionId
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Primary resource ID — required when the action path contains {id} | |
| body | No | JSON request body for POST/PUT/PATCH (and some DELETE) actions | |
| query | No | Query parameters as key-value pairs | |
| subId | No | Secondary resource ID — required when the action path contains {subId} | |
| action | Yes | Endpoint to call (see tool description) | |
| region | Yes | Trimble Connect region: us (North America), eu (Europe), ap (Asia-Pacific), ap-au (Australia) | |
| extraId | No | Tertiary resource ID — required when the action path contains {extraId} | |
| version | No | Version number — required when the action path contains {version} | |
| projectId | No | Project ID — required when the action path contains {projectId} | |
| bcfVersion | No | BCF API version for BCF actions (default 2.1) |