v1
latestOpenAPI 3.0.12026-07-226992320.0 KBQA Rules
Update QA Rule
Partially updates an existing QA rule by qaRuleId. Only fields provided in the request body are updated — omitted fields remain unchanged. Returns the updated QA rule record.
patch/v1/qa-rules/{qaRuleId}
Path parameters
qaRuleIdstring required
The unique identifier of the QA rule to update.
Request body
Example request
{
"ruleName": "Tone & Professionalism Check",
"ruleDescription": "Ensures agents maintain a professional and empathetic tone throughout the conversation.",
"evaluationCriteria": "Evaluate whether agent greeted the customer by name, avoided interrupting, and closed with a resolution summary.",
"expectedValue": true,
"agentIds": [
"D5D0p7TUs66TTAEAx"
]
}Response
OK
Example response
{
"qaRuleId": "rule_YYdKgw1masomMfe8",
"workspaceId": "org_V6eZ2zg8ziDx5pft",
"ruleName": "Tone & Professionalism Check",
"ruleDescription": "Ensures agents maintain a professional and empathetic tone throughout the conversation.",
"agents": [
{
"name": "New AI Agent",
"agentId": "agent_D5D0p7TUs66TTAEAx",
"status": "Live"
}
],
"evaluationCriteria": "Evaluate whether agent greeted the customer by name, avoided interrupting, and closed with a resolution summary.",
"expectedValue": true
}