Risk Configuration
6 Endpunkte. Basis-URL: https://xapi.ambertech.cloud/api/v1
Get risk configuration (creates default if not set)#
GET
/risk-configurationTokenAntworten
- 200OK
Beispiel (cURL)
curl -X GET "https://xapi.ambertech.cloud/api/v1/risk-configuration" \
-H "Authorization: Bearer $XISUITE_TOKEN"Update risk configuration#
PUT
/risk-configurationTokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
spaceIdPflicht | Query | string | – |
Request-Body
| Name | Typ | Beschreibung |
|---|---|---|
probability_mappings | ProbabilityMappingsDto | Probability mappings for levels 1–4 (decimal 0–1 each). E.g. {"1":0.005,"2":0.055,"3":0.2,"4":0.65} |
impact_mappings | ImpactMappingsDto | Impact mappings for levels 1–4 (positive monetary values). E.g. {"1":961.54,"2":10576.92,"3":105769.23,"4":855769.23} |
threshold_green | number | Green risk threshold (must be < threshold_orange). Default 1000. |
threshold_orange | number | Orange risk threshold (must be > threshold_green). Default 10000. |
Antworten
- 200OK
Beispiel (cURL)
curl -X PUT "https://xapi.ambertech.cloud/api/v1/risk-configuration" \
-H "Authorization: Bearer $XISUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"probability_mappings":"…","impact_mappings":"…","threshold_green":"1000"}'Reset risk configuration to defaults#
DELETE
/risk-configurationTokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
spaceIdPflicht | Query | string | – |
Antworten
- 200OK
Beispiel (cURL)
curl -X DELETE "https://xapi.ambertech.cloud/api/v1/risk-configuration" \
-H "Authorization: Bearer $XISUITE_TOKEN"Calculate financial risk value for probability × impact#
GET
/risk-configuration/calculateTokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
probabilityPflicht | Query | string | Integer level 1–4 |
impactPflicht | Query | string | Integer level 1–4 |
Antworten
- 200OK
Beispiel (cURL)
curl -X GET "https://xapi.ambertech.cloud/api/v1/risk-configuration/calculate" \
-H "Authorization: Bearer $XISUITE_TOKEN"Get risk level (GREEN/ORANGE/RED) for a financial value#
GET
/risk-configuration/risk-levelTokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
valuePflicht | Query | string | Financial risk value |
Antworten
- 200OK
Beispiel (cURL)
curl -X GET "https://xapi.ambertech.cloud/api/v1/risk-configuration/risk-level" \
-H "Authorization: Bearer $XISUITE_TOKEN"Get risk level threshold ranges#
GET
/risk-configuration/risk-level-rangesTokenAntworten
- 200OK
Beispiel (cURL)
curl -X GET "https://xapi.ambertech.cloud/api/v1/risk-configuration/risk-level-ranges" \
-H "Authorization: Bearer $XISUITE_TOKEN"