Used Zammad version: 6.0.0-1693485274.bcb37f95.buster
Used Zammad installation type: installed via apt as package
Operating system: Debian GNU/Linux 10 (buster)
Browser + version: Using CURL
Expected behavior:
When I run command from command line: curl -k -H "Authorization: Token token=redacted" https://redacted.com/api/v1/attachments/12345 > attachment.xlsx then the attachment is downloaded and I can open it in native application.
When I then run command curl -k -X DELETE -H "Authorization: Token token=redacted" https://redacted.com/api/v1/attachments/12345 then I expect the attachment to be deleted from Zammad.
Actual behavior:
When I run command from command line: curl -k -H "Authorization: Token token=redacted" https://redacted.com/api/v1/attachments/12345 > attachment.xlsx then the attachment is downloaded and I can open it in native application.
When I then run command curl -k -X DELETE -H "Authorization: Token token=redacted" https://redacted.com/api/v1/attachments/12345 then result is {“error”:“ActiveRecord::RecordNotFound”,“error_human”:“ActiveRecord::RecordNotFound”}
As far as I know, deleting individual attachments from tickets isn’t supported. So far the only official solution has been to delete the entire ticket, which would also remove the attachment (if there are no other tickets referencing the same file).