node-zendesk icon indicating copy to clipboard operation
node-zendesk copied to clipboard

Change CommentAttachement redact from DELETE to PUT HTTP Method

Open rbonnefille opened this issue 7 months ago • 0 comments

Issue

Server returns 404 error when trying to redact a comment attachment. This is due to the fact the method is using a delete and not a put http request.

Error from console: Error: Request processing failed: Zendesk Error (404): Item not found

Source: #https://github.com/blakmatrix/node-zendesk/blob/514199080d654bfbb5a6638fdee48e7a9a595809/src/clients/core/attachments.js#L81

##Fix

Change method by PUT: super.put

rbonnefille avatar Apr 09 '25 10:04 rbonnefille