Add an attachment to a work item
add_attachmentUpload a local file and attach it to a work item, returning the attachment ID and the work item's new revision.
Instructions
Upload a local file and attach it to a work item (adds an AttachedFile relation). Simple upload limit: 130 MB. Returns the attachment id and the work item's new revision.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comment | No | Optional comment shown next to the attachment. | |
| project | No | Team project name or ID used for the attachment endpoints. Defaults to the work item's own project, then to AZURE_DEVOPS_PROJECT. | |
| fileName | No | Name to store on the server; defaults to the file's base name. | |
| filePath | Yes | Absolute or cwd-relative path of the local file to upload (simple upload limit: 130 MB). | |
| workItemId | Yes | Work item ID (unique within the collection). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| attachment | Yes | ||
| workItemId | Yes | ||
| workItemRev | Yes |