PATCH
/
aiQualityCheck
/
testCase
/
{testCaseId}
curl --request PATCH \
  --url https://demo.enneo.ai/api/mind/aiQualityCheck/testCase/{testCaseId} \
  --header 'Content-Type: application/json' \
  --data '{
  "description": "Updated test case for bank data change",
  "expectedResult": {
    "contractId": 715382,
    "sentiment": "disappointed"
  }
}'
{
  "success": true,
  "id": 123,
  "ticketId": 123,
  "aiAgentId": "<string>",
  "channel": "<string>",
  "summary": "<string>",
  "description": "<string>",
  "expectedResult": {},
  "modifiedBy": 123
}

Authorizations

connect.sid
string
cookie
required

Cookie-based authentication

Path Parameters

testCaseId
integer
required

Body

application/json
description
string
expectedResult
object

Response

200 - application/json
Successful operation

Represents a test case for AI quality checks. Represents a "test case": A ticket that is assigned to an AI agent with an expected result. During a specific test run, every test case is individually tested and the result is saved as a "test ticket". So if we have 10 test cases for an ai agent and 5 test runs, we will have 10*5=50 test tickets for that ai agent.

success
boolean

Operation was successful

id
integer | null

The ID of the test case. Null if not yet saved.

ticketId
integer | null

The ID of the ticket that is being tested

aiAgentId
string | null

The id code of the AI agent that is being tested, e.g. updated_bank_data

channel
string | null

The channel of the ticket, e.g. email, phone, chat, etc. Pulled from ticket.channel

summary
string | null

The summary of the ticket. Pulled from ticket.summary

description
string | null

A short description of the test case. Null if not yet set.

expectedResult
object | null

The expected result of the test case

modifiedBy
integer | null

The user ID of the user who last modified the test case