Validate

Validates search criteria

post

Note this method validates insight search critera.

POST /redaction/validate
{
    "sample_input": "i need to speak to my account manager",
    "expression": "(account | service) & manager"
    "sample_response": "I can help you with that request."
    "response": "(help | assit) & request"
    "type": "phrase"
}
Body
sample_inputstring | nullableOptional
expressionstring | nullableOptional
responsestring | nullableOptional
sample_responsestring | nullableOptional
typestring | nullableOptional
Responses
200
Input validated successfully
post
POST /redaction/validate HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 100

{
  "sample_input": "text",
  "expression": "text",
  "response": "text",
  "sample_response": "text",
  "type": "text"
}
{
  "input_validated": true,
  "response_validated": true,
  "input_matches": 1,
  "response_matches": 1,
  "input_error": "text",
  "response_error": "text"
}

Sample Response

{
  "input_validated": true,
  "response_validated": true,
  "input_matches": 0,
  "response_matches": 1,
  "input_error": "",
  "response_error": ""
}

Last updated