Calculations
6 Endpunkte. Basis-URL: https://xapi.ambertech.cloud/api/v1
Clear all calculation cache for the organization#
DELETE
/calculations/cacheTokenAntworten
- 200OK
Beispiel (cURL)
curl -X DELETE "https://xapi.ambertech.cloud/api/v1/calculations/cache" \
-H "Authorization: Bearer $XISUITE_TOKEN"Get cached calculation result for a process#
GET
/calculations/cache/{processId}TokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
processIdPflicht | Pfad | string | Business process UUID |
Antworten
- 200OK
Beispiel (cURL)
curl -X GET "https://xapi.ambertech.cloud/api/v1/calculations/cache/{processId}" \
-H "Authorization: Bearer $XISUITE_TOKEN"Clear calculation cache for a process (and ancestors)#
DELETE
/calculations/cache/{processId}TokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
processIdPflicht | Pfad | string | Business process UUID |
Antworten
- 200OK
Beispiel (cURL)
curl -X DELETE "https://xapi.ambertech.cloud/api/v1/calculations/cache/{processId}" \
-H "Authorization: Bearer $XISUITE_TOKEN"Calculate risk for a process (cached)#
POST
/calculations/calculateTokenRequest-Body
| Name | Typ | Beschreibung |
|---|---|---|
process_idPflicht | string | Business process UUID to calculate |
cascade_to_parents | boolean | Whether to cascade calculation to parent processes (default true) |
Antworten
- 200OK
Beispiel (cURL)
curl -X POST "https://xapi.ambertech.cloud/api/v1/calculations/calculate" \
-H "Authorization: Bearer $XISUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"process_id":"…"}'Force recalculate risk for a process (bypasses cache)#
POST
/calculations/force-calculateTokenRequest-Body
| Name | Typ | Beschreibung |
|---|---|---|
process_idPflicht | string | Business process UUID to calculate |
cascade_to_parents | boolean | Whether to cascade calculation to parent processes (default true) |
Antworten
- 200OK
Beispiel (cURL)
curl -X POST "https://xapi.ambertech.cloud/api/v1/calculations/force-calculate" \
-H "Authorization: Bearer $XISUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"process_id":"…"}'Recalculate entire process tree bottom-up#
POST
/calculations/recalculate-treeTokenRequest-Body
| Name | Typ | Beschreibung |
|---|---|---|
root_process_idPflicht | string | Root process UUID for the tree to recalculate |
Antworten
- 200OK
Beispiel (cURL)
curl -X POST "https://xapi.ambertech.cloud/api/v1/calculations/recalculate-tree" \
-H "Authorization: Bearer $XISUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"root_process_id":"…"}'