> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gu1.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Risk Matrix

> Update risk matrix configuration — using the gu1 risk scoring engine with configurable triggers, with examples for update use cases.

## Overview

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

## Path Parameters

<ParamField path="id" type="string" required>
  Risk Matrix ID
</ParamField>

## Request Body

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

## Example

```bash theme={null}
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

```json theme={null}
{
  "riskMatrix": {
    "id": "rm-123",
    "name": "Updated Matrix Name",
    "version": 2,
    "updatedAt": "2024-12-23T12:00:00Z"
  }
}
```

<Note>
  Updating triggers will affect all future rule executions. Consider using shadow mode to test changes.
</Note>
