Recent searches


No recent searches

Deleting attachments using API



Posted Sep 08, 2023

We have a customer who is requesting we remove/redact all attachments on over 100 tickets. I found that with the API I cannot redact attachments to comments on Closed or Archived tickets, so I have moved onto the deleting them.

I have extracted the necessary token for the attachment and built the URL. When I call the API DELETE /api/v2/uploads/{token} the response is:

{"error":"RecordNotFound","description":"Not found"}

The URL I used is (subdomain redacted):

https://redacted.zendesk.com/api/v2/uploads/hOSqeGpunY1gA6QZ1CPPmmlU4

The URL of the attachment is:

https://support.redacted.com/attachments/token/hOSqeGpunY1gA6QZ1CPPmmlU4/?name=monitoring_20220428_staging.zip

Anything obviously wrong?

 


0

0

0 comments

Please sign in to leave a comment.

Didn't find what you're looking for?

New post