Text Redaction
JSON
Returns a modified version of the JSON that redacts or synthesizes the detected entity values. The redacted JSON has the same structure as the input JSON. Only the primitive JSON values, such as strings and numbers, are modified. Optionally, provide an array of JSONPath expressions in jsonPathIgnorePaths to exclude specific values from redaction.
post/api/Redact/json
Request body
Example request
{
"generatorConfig": {
"NAME_GIVEN": "Redaction",
"NAME_FAMILY": "Redaction"
},
"labelBlockLists": {
"NAME_FAMILY": {
"regexes": [
".*\\s(disease|syndrom|disorder)"
]
}
},
"labelAllowLists": {
"HEALTHCARE_ID": {
"regexes": [
"[a-z]{2}\\d{9}"
]
}
},
"customEntityRankingModes": {
"MY_CUSTOM_ENTITY": "Standard"
},
"customEntityConfidenceThresholds": {
"MY_CUSTOM_ENTITY": 0.5
},
"jsonText": "{\"Name\": \"John Smith\", \"Description\": \"John lives in Atlanta, Ga.\"}",
"jsonPathAllowLists": {
"NAME_GIVEN": [
"$.name.first"
]
},
"jsonPathIgnorePaths": [
"$.id",
"$.metadata.timestamp"
]
}Response
Returns the redacted JSON