Skip to main content
PATCH
/
aiQualityCheck
/
testCase
/
{id}
Update a test case by ID
curl --request PATCH \
  --url https://demo.enneo.ai/api/mind/aiQualityCheck/testCase/{id} \
  --header 'Authorization: Bearer <token>' \
  --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,
  "aiAgentIds": [
    1,
    2,
    3
  ],
  "channel": "<string>",
  "summary": "<string>",
  "description": "<string>",
  "expectedResult": {},
  "modifiedBy": 123
}

Authorizations

Authorization
string
header
required

JWT-based authentication

Path Parameters

id
integer
required

The test case ID (numeric)

Body

application/json
description
string
Example:

"Updated test case for bank data change"

expectedResult
object
Example:
{
"contractId": 715382,
"sentiment": "disappointed"
}

Response

200 - application/json

Successful operation

Data format of Enneo success messages Represents a test case for AI quality checks. A ticket that is assigned to AI agents 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 and 5 test runs, we will have 10*5=50 test tickets. Note: aiAgentIds are for reference only. Each test case generates ONE test ticket per test run, regardless of how many agents are in aiAgentIds.

success
boolean

Operation was successful

Example:

true

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 (null for chat/voice tests)

aiAgentIds
integer[]

Array of AI agent IDs for reference only (indicates which agents this test case is meant for). Does not affect the number of test tickets created.

Example:
[1, 2, 3]
channel
string | null

The channel of the test case (email, chat, or phone)

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