Skip to main content
PUT
http://api.gu1.ai
/
risk-matrices
/
{id}
Update Risk Matrix
curl --request PUT \
  --url http://api.gu1.ai/risk-matrices/{id} \
  --header 'Authorization: Bearer <token>'

Overview

Updates an existing risk matrix configuration, including triggers and scoring.

Path Parameters

id
string
required
Risk Matrix ID

Request Body

Same fields as Create Risk Matrix (all optional for updates).

Example

curl -X PUT http://api.gu1.ai/risk-matrices/rm-123 \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Updated Matrix Name",
    "status": "active",
    "triggers": [
      {
        "name": "New Trigger",
        "condition": { "field": "riskScore", "operator": "gt", "value": 85 },
        "action": "create_investigation",
        "priority": "HIGH"
      }
    ]
  }'

Response

{
  "riskMatrix": {
    "id": "rm-123",
    "name": "Updated Matrix Name",
    "version": 2,
    "updatedAt": "2024-12-23T12:00:00Z"
  }
}
Updating triggers will affect all future rule executions. Consider using shadow mode to test changes.