Attach files to a ticket
add_ticket_attachmentsLink already uploaded files to a support ticket using file IDs. Skips existing attachments and cannot edit closed or invalid tickets.
Instructions
Link already uploaded files to a ticket by their file ids. Files that are attached already are skipped, and the API rejects a call that would add nothing. Tickets in the states closed or invalid are locked by the API and reject edits.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"ticketId": "<ticketId>",
"fileIds": "<fileIds>"
},
"name": "add_ticket_attachments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | No | Access token of a private project. Only needed without an API key, or for projects behind a private link. | |
| fileIds | Yes | File ids returned by upload_attachment. | |
| ticketId | Yes | Ticket the files are attached to. |