curl -X PATCH "https://api.example.com/api/violations/viol_789xyz" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"status": "false_positive",
"review_note": "This transaction was pre-authorized by compliance team"
}'
{
"success": true,
"violation": {
"id": "viol_789xyz",
"status": "false_positive",
"reviewed_at": "2024-02-28T14:30:00Z"
},
"updated_score": 87.5
}
Mark a violation as approved or false positive and update the compliance score with Bayesian feedback
curl -X PATCH "https://api.example.com/api/violations/viol_789xyz" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"status": "false_positive",
"review_note": "This transaction was pre-authorized by compliance team"
}'
{
"success": true,
"violation": {
"id": "viol_789xyz",
"status": "false_positive",
"reviewed_at": "2024-02-28T14:30:00Z"
},
"updated_score": 87.5
}
Review a compliance violation by marking it as approved or a false positive. This triggers:Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Basit-Ali0/Yggdrasil/llms.txt
Use this file to discover all available pages before exploring further.
approved - Confirms the violation is legitimatefalse_positive - Marks the violation as incorrectly flaggedcurl -X PATCH "https://api.example.com/api/violations/viol_789xyz" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"status": "false_positive",
"review_note": "This transaction was pre-authorized by compliance team"
}'
{
"success": true,
"violation": {
"id": "viol_789xyz",
"status": "false_positive",
"reviewed_at": "2024-02-28T14:30:00Z"
},
"updated_score": 87.5
}
approved_count for the rulefalse_positive_count for the ruleaccuracy = approved_count / (approved_count + false_positive_count)
score_history array:
{
"score": 87.5,
"timestamp": "2024-02-28T14:30:00Z",
"action": "false_positive",
"violation_id": "viol_789xyz"
}
score = max(0, 100 - totalPenalty)
VALIDATION_ERROR, NOT_FOUND, UNAUTHORIZED, or INTERNAL_ERRORVALIDATION_ERROR)