To support redaction, we’re adding two new document operations to our list of supported operations:
createRedactions, which gives you the power to programmatically create redaction annotations in your document.
applyRedactions, which applies the redactions to the document, permanently removing the covered data.
The best way to create redactions using the Processor is with the
createRedactions operation, which offers three ways to automatically create redaction annotations in your document:
presetstrategy allows you to mark for redaction certain predefined kinds of information — for example, URLs, dates, and times. For a full list of presets, refer to our guides.
regexstrategy allows you to mark for redaction everything matching the regular expression you provide.
textstrategy allows you to mark for redaction any text in the document that matches your provided search string.
After the redactions are created, you can use
applyRedactions to bake them into the document, and of course you can use both the
applyRedactions commands in a single list of operations to automatically redact a document in one request.
For a full example of how to create redaction annotations and then apply them, have a look at our examples.