Redact Comment Attachment
PUT {{baseUrl}}/api/v2/tickets/:ticket_id/comments/:comment_id/attachments/:attachment_id/redact
Redaction allows you to permanently remove attachments from an existing comment on a ticket. Once removed from a comment, the attachment is replaced with an empty redacted.txt
file.
The redaction is permanent. It is not possible to undo redaction or see what was removed. Once a ticket is closed, redacting its attachments is no longer possible.
Also, if you want to redact an inline attachment, you can use the include_inline_images
parameter in the List Comments operation to obtain the inline attachment ID, and use it in the request URL.
Allowed For
- Admins
- Agents when deleting tickets is enabled for agents on professional accounts
- Agents assigned to a custom role with permissions to redact ticket content (Enterprise only)
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
RESPONSES
status: OK
{"attachment":{"content_type":"application/binary","content_url":"https://company.zendesk.com/attachments/myfile.dat","file_name":"myfile.dat","id":498483,"size":2532,"thumbnails":[],"url":"https://company.zendesk.com/api/v2/attachments/498483.json"}}