Delete an attachment
delete_attachmentRemove a file attachment from a support ticket, breaking the ticket-file link permanently. Requires confirm=true; closed or invalid tickets reject edits.
Instructions
Remove a file from a ticket. The link between ticket and file is gone for good and cannot be restored from here, the file itself stays in the file manager of the site. Requires confirm set to true. Tickets in the states closed or invalid are locked by the API and reject edits.
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. | |
| fileId | Yes | File id to remove from the ticket. | |
| confirm | Yes | Set to true to confirm the irreversible removal. | |
| ticketId | Yes | Ticket the file is attached to. |