v1
latestOpenAPI 3.0.12026-07-226992320.0 KBTest Cases
Update Test Case
Partially updates an existing simulation test case by testCaseId. Only fields provided in the request body are updated — omitted fields remain unchanged. Returns the updated test case record.
patch/v1/test-cases/{testCaseId}
Path parameters
testCaseIdstring required
Unique identifier of the test case to update. Obtained from the testCaseId field in the Create Test Case or List Test Cases response.
Request body
Example request
{
"label": "Angry Customer - Cancellation Flow",
"agentId": "D5D0p7TUs66TTAEAx",
"llmModel": "gpt-4o-mini",
"mockData": [
{
"variableName": "customer_name",
"value": "John Doe"
},
{
"variableName": "account_status",
"value": "active"
}
],
"userPrompt": "You are an angry customer who wants to cancel their subscription.",
"attempt": 5,
"successCriteria": "The agent should acknowledge the cancellation request, present retention alternatives, and confirm the cancellation if the customer insists."
}Response
OK
Example response
{
"testCaseId": "tc_d17T6uReChpyfFeP",
"label": "Angry Customer - Cancellation Flow",
"agent": {
"name": "New AI Agent",
"agentId": "agent_D5D0p7TUs66TTAEAx",
"status": "Live"
},
"workspaceId": "org_V6eZ2zg8ziDx5pft",
"llmModel": "gpt-4o-mini",
"mockData": [
{
"variableName": "customer_name",
"value": "John Doe"
},
{
"variableName": "account_status",
"value": "active"
}
],
"userPrompt": "You are an angry customer who wants to cancel your subscription.",
"attempt": 5,
"successCriteria": "The agent should acknowledge the cancellation request, present retention alternatives, and confirm the cancellation if the customer insists."
}