Delete a file from a ticket message
POST
/api/crm/v2/tickets.delete_attachmentv2 operationId:
tickets.deleteAttachmentDeletes the attachment file_id from the ticket message message_id: the file is removed from storage, and the message's file list is updated. If the message has neither text nor attachments left, the message itself is deleted; the event is logged in the ticket history. Returns the updated list of attachments.
Authorization
api-token + language + role
Request body application/json
object
idintegerrequired
Ticket ID
Example: 407
file_idstringrequired
Example: 94801e8bee56a5a2d15946e243ae576a
message_idintegerrequired
Example: 898
Responses
OK
object
statusstringrequired
Values:successerror
Example: success
dataobject
filesarray of objectrequired
message_idintegerrequired
Example: 912
file_idstringrequired
Example: df9a0531a9da6cf027e5143f38486dba
linkstringrequired
Example: https://cdn.foodsoul.pro/support/407/images/df9a0531a9da6cf027e5143f38486dba.jpg?v1733409704
idintegerrequired
Example: 407