Validate Redaction Configuration for a Specific Tenant
Once the redaction configuration is made for a tenant, you can validate whether the data is redacted as expected.
The validation can be done through swagger. Follow the given below steps in swagger:
Enter the swagger URL of the tenant where the redaction configuration need to be made.
Example:
https://uselfserve-<tenant_name>.us.cloud.uniphore.com/rwse/swagger-ui/index.html#/redaction-core-controller/redactTextUse Bearer token to authorize.
Go to redaction-core-controller section and select POST / recacttext API.
In the request body, enter the following details. Given below is the sample request.
{ "userRequest": "578", "globalLanguageCode": "en", "previousPromptQuestion": "Can you please provide your cvv?", "conversationId": "test-en-001" }Parameter Name
Datatype
Description
Required/ Optional
userRequest
String
Enter the Entity value. Example: If you want to verify the cvv enter the 3-digit cvv number.
Required
globalLanguageCode
String
Enter the Language code for which redaction configuration was made.
Required
previousPromptQuestion
String
Enter the prompt question asked by the BOT. Example: Please enter your cvv.
Required
conversationId
String
Enter the default conversation id which is test-en-001.
Required
Once the API is executed successfully, you will see the redacted response. Given below is the sample response.
{ "userRequest": "578", "redactedResponse": "***", "reason": "success", "returnCode": 200, "redacted": true}