{
  "info": {
    "_postman_id": "407dcd61-25e5-4f07-b368-7d4a14552f25",
    "name": "Zendesk Comment Redactions",
    "description": "Needs a description.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "createdAt": "2026-06-05T15:22:33.000Z",
    "updatedAt": "2026-06-05T15:22:34.000Z",
    "lastUpdatedBy": "35240",
    "uid": "35240-407dcd61-25e5-4f07-b368-7d4a14552f25"
  },
  "item": [
    {
      "name": "api",
      "item": [
        {
          "name": "v2",
          "item": [
            {
              "name": "comment_redactions",
              "item": [
                {
                  "name": "{ticket_comment_id}",
                  "item": [
                    {
                      "name": "Zendesk Put  Api V2 Comment_redactions Ticket_comment_id",
                      "id": "379c305d-4d41-4b45-9ffc-5897e99c058c",
                      "protocolProfileBehavior": {
                        "disableBodyPruning": true
                      },
                      "request": {
                        "method": "PUT",
                        "header": [
                          {
                            "key": "Accept",
                            "value": "application/json"
                          }
                        ],
                        "url": {
                          "raw": "{{baseUrl}}/api/v2/comment_redactions/:ticket_comment_id",
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "path": [
                            "api",
                            "v2",
                            "comment_redactions",
                            ":ticket_comment_id"
                          ],
                          "variable": [
                            {
                              "id": "a47bd7bc-19e1-4bac-a355-54f824a31d81",
                              "key": "ticket_comment_id"
                            }
                          ]
                        },
                        "description": "Redaction allows you to permanently remove words, strings, or attachments from a ticket comment.\n\nIn the `html_body` of the comment, wrap the content you want redacted in `<redact>` tags. Example:\n\n```json\n{\n  \"html_body\": \"<div class=\\\"zd-comment\\\" dir=\\\"auto\\\">My ID number is <redact>847564</redact>!</div>\",\n  \"ticket_id\":100\n}\n```\n\nThe characters in the redact tag will be replaced by the \u2587 symbol.\n\nTo redact HTML elements such inline images, anchor tags, and links, add the `redact` tag attribute to the element as well as the `<redact>` tag to inner text, if any. Example: \n\n`<a href=\"http://example.com\" redact><redact>some link</redact></a>`\n\nThe `redact` attribute only redacts the tag. Any inner text will be left behind if not enclosed in a `<redact>` tag.\n\nRedaction is permanent and can not be undone. Data is permanently deleted from Zendesk servers with no way to recover it.\n\nThis endpoint provides all the same functionality that the [Redact String in Comment](/api-reference/ticketing/tickets/ticket_comments/#redact-string-in-comment) endpoint provides, plus:\n\n- Redaction of comments in closed tickets\n\n- Redaction of comments in archived tickets\n\n- Redaction of formatted text (bold, italics, hyperlinks)\n\n**Limitations**: When content is redacted from an email comment, the content is also redacted from the original email through a background job. It may take a while for the changes to be completed.\n\n**Note**: We recommend using this endpoint instead of the [Redact String in Comment](/api-reference/ticketing/tickets/ticket_comments/#redact-string-in-comment) endpoint, which will eventually be deprecated.\n\n#### Allowed For\n\n- Agents\n\n[Agent Workspace](https://support.zendesk.com/hc/en-us/articles/360024218473) must be enabled on the account. For professional accounts, deleting tickets must be enabled for agents. On Enterprise accounts, you can assign agents to a custom role with permissions to redact ticket content.\n\n#### Request Body Properties\n\n| Name                     | Type    | Required | Description                                                                                                                                      |\n| -------------------------| ------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |\n| ticket_id                | integer | true     | The ID of the ticket                                                                                                                             |\n| html_body                | string  | false    | The `html_body` of the comment containing `<redact>` tags or `redact` attributes                                           |\n| external_attachment_urls | array   | false    | Array of attachment URLs belonging to the comment to be redacted. See [`content_url` property of Attachment](/api-reference/ticketing/tickets/ticket-attachments/) |\n"
                      },
                      "response": [
                        {
                          "id": "86addb65-117d-4f04-97ae-bad6bc11c703",
                          "name": "Success response",
                          "originalRequest": {
                            "method": "PUT",
                            "header": [
                              {
                                "key": "Accept",
                                "value": "application/json"
                              }
                            ],
                            "url": {
                              "raw": "{{baseUrl}}/api/v2/comment_redactions/:ticket_comment_id",
                              "host": [
                                "{{baseUrl}}"
                              ],
                              "path": [
                                "api",
                                "v2",
                                "comment_redactions",
                                ":ticket_comment_id"
                              ],
                              "variable": [
                                {
                                  "key": "ticket_comment_id"
                                }
                              ]
                            }
                          },
                          "status": "OK",
                          "code": 200,
                          "_postman_previewlanguage": "json",
                          "header": [
                            {
                              "key": "Content-Type",
                              "value": "application/json"
                            }
                          ],
                          "cookie": [],
                          "responseTime": null,
                          "body": "{\n  \"comment\": {\n    \"value\": \"reference #/components/schemas/TicketCommentObject not found in the OpenAPI spec\"\n  }\n}",
                          "createdAt": "2026-06-05T15:22:34.000Z",
                          "updatedAt": "2026-06-05T15:22:34.000Z",
                          "uid": "35240-86addb65-117d-4f04-97ae-bad6bc11c703"
                        }
                      ],
                      "createdAt": "2026-06-05T15:22:34.000Z",
                      "updatedAt": "2026-06-05T15:22:34.000Z",
                      "uid": "35240-379c305d-4d41-4b45-9ffc-5897e99c058c"
                    }
                  ],
                  "id": "1306f225-22f4-4a6e-aee6-0f154547e802",
                  "createdAt": "2026-06-05T15:22:34.000Z",
                  "updatedAt": "2026-06-05T15:22:34.000Z",
                  "uid": "35240-1306f225-22f4-4a6e-aee6-0f154547e802"
                }
              ],
              "id": "f0823a45-dbd9-45ff-9095-fa5fce92a731",
              "createdAt": "2026-06-05T15:22:34.000Z",
              "updatedAt": "2026-06-05T15:22:34.000Z",
              "uid": "35240-f0823a45-dbd9-45ff-9095-fa5fce92a731"
            }
          ],
          "id": "5c4424b5-6b29-44ec-a6ab-4e408f244e8d",
          "createdAt": "2026-06-05T15:22:34.000Z",
          "updatedAt": "2026-06-05T15:22:34.000Z",
          "uid": "35240-5c4424b5-6b29-44ec-a6ab-4e408f244e8d"
        }
      ],
      "id": "d66daff9-fd35-4973-be61-a60edb434a12",
      "createdAt": "2026-06-05T15:22:34.000Z",
      "updatedAt": "2026-06-05T15:22:34.000Z",
      "uid": "35240-d66daff9-fd35-4973-be61-a60edb434a12"
    }
  ],
  "variable": [
    {
      "key": "baseUrl",
      "value": "/"
    }
  ]
}