Risks
All operations for Risks.
Data model
The endpoints of this module work on the following entity. The schema reference lists every field with type, validation and relationships:
| Entity | Schema ID | Fields | Sequence | Permissions |
|---|---|---|---|---|
| Risk | risk |
19 | — | risk_* |
Endpoints
| Method | Path | Operation | Description |
|---|---|---|---|
POST |
/v1/risks |
Create risk | Create a new risk in the active tenant. |
DELETE |
/v1/risks/{id} |
Delete risk | Soft delete entity. |
GET |
/v1/risks/{id} |
Get risk by id | Fetch a single risk. |
GET |
/v1/risks/by-asset/{assetId} |
GET /v1/risks/by-asset/{assetId} | CodeMeta OS API endpoint. |
GET |
/v1/risks/by-party/{partyId} |
GET /v1/risks/by-party/{partyId} | CodeMeta OS API endpoint. |
GET |
/v1/risks/{id}/linked |
Get linked entities | CodeMeta OS API endpoint. |
GET |
/v1/risks/matrix |
GET /v1/risks/matrix | CodeMeta OS API endpoint. |
GET |
/v1/risks/overdue-reviews |
GET /v1/risks/overdue-reviews | CodeMeta OS API endpoint. |
GET |
/v1/risks/{id}/timeline |
Get timeline | CodeMeta OS API endpoint. |
GET |
/v1/risks/{id}/transitions |
List transitions | CodeMeta OS API endpoint. |
GET |
/v1/risks |
List risks | List risks for the active tenant. |
PATCH |
/v1/risks/{id} |
Patch risk | JSON Merge Patch update. |
POST |
/v1/risks/bulk |
Bulk operation | CodeMeta OS API endpoint. |
POST |
/v1/risks/{id}/transition |
POST /v1/risks/{id}/transition | CodeMeta OS API endpoint. |
POST |
/v1/risks/{id}/transitions/{transitionKey} |
Execute transition | CodeMeta OS API endpoint. |
PUT |
/v1/risks/{id} |
Replace risk | Full replace with optimistic locking. |