PATCH
/
aiQualityCheck
/
testRun
/
{testRunId}
/
updateExpectedResult
/
{ticketId}
curl --request PATCH \
  --url https://demo.enneo.ai/api/mind/aiQualityCheck/testRun/{testRunId}/updateExpectedResult/{ticketId} \
  --header 'Content-Type: application/json' \
  --data '{
  "expectedResult": {
    "contractId": "123456",
    "inputParameters": {
      "change_meter_reading": {
        "_action": null,
        "requestedDeposit": 35
      }
    },
    "intentDetection": [
      "change_meter_reading",
      "change_payment_method"
    ],
    "outcomeActions": {
      "change_meter_reading": [
        "Update ERP System",
        "Inform Customer change is not possible"
      ]
    },
    "outcomeNotifications": {
      "change_meter_reading": [
        "Meter reading is plausible"
      ]
    },
    "outcomeText": {
      "change_meter_reading": null
    },
    "outcomeType": {
      "change_meter_reading": "interaction"
    },
    "sentiment": "disappointed",
    "tags": [
      "sales",
      "marketing"
    ],
    "aiSupportLevel": "human",
    "error": null
  }
}'
{
  "success": true,
  "message": "Test ticket expected result updated successfully",
  "testTicket": {
    "id": 123,
    "testRunId": 123,
    "testCaseId": 123,
    "ticketId": 123,
    "aiAgentId": "<string>",
    "state": "scheduled",
    "config": {},
    "expectedResult": {
      "contractId": "123456",
      "inputParameters": {
        "change_meter_reading": {
          "_action": null,
          "requestedDeposit": 35
        }
      },
      "intentDetection": [
        "change_meter_reading",
        "change_payment_method"
      ],
      "outcomeActions": {
        "change_meter_reading": [
          "Update ERP System",
          "Inform Customer change is not possible"
        ]
      },
      "outcomeNotifications": {
        "change_meter_reading": [
          "Meter reading is plausible"
        ]
      },
      "outcomeText": {
        "change_meter_reading": null
      },
      "outcomeType": {
        "change_meter_reading": "interaction"
      },
      "sentiment": "disappointed",
      "tags": [
        "sales",
        "marketing"
      ],
      "aiSupportLevel": "human",
      "error": null
    },
    "actualResult": {
      "contractId": "123456",
      "inputParameters": {
        "change_meter_reading": {
          "_action": null,
          "requestedDeposit": 35
        }
      },
      "intentDetection": [
        "change_meter_reading",
        "change_payment_method"
      ],
      "outcomeActions": {
        "change_meter_reading": [
          "Update ERP System",
          "Inform Customer change is not possible"
        ]
      },
      "outcomeNotifications": {
        "change_meter_reading": [
          "Meter reading is plausible"
        ]
      },
      "outcomeText": {
        "change_meter_reading": null
      },
      "outcomeType": {
        "change_meter_reading": "interaction"
      },
      "sentiment": "disappointed",
      "tags": [
        "sales",
        "marketing"
      ],
      "aiSupportLevel": "human",
      "error": null
    },
    "rawResult": {},
    "outcomeShort": "pass",
    "outcome": {}
  }
}

Authorizations

connect.sid
string
cookie
required

Cookie-based authentication

Path Parameters

testRunId
integer
required
ticketId
integer
required

Body

application/json
expectedResult
object

The updated expected result for the test ticket. You can either specify all test conditions, or only some. In this case only the provided test conditions will be provided

Response

200
application/json
Successful operation
success
boolean
message
string
testTicket
object

Represents an individual ticket that is tested regarding AI quality as part of a test run