Stop a risk run
curl --request POST \
--url https://api.itoflow.ai/risk/runs/{run_id}/cancel \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.itoflow.ai/risk/runs/{run_id}/cancel"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.itoflow.ai/risk/runs/{run_id}/cancel', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"cancelled": true
}{
"error": {
"code": "<string>",
"message": "<string>",
"flag": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"flag": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"flag": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"flag": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"flag": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"flag": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"flag": "<string>"
}
}Risk runs
Stop a risk run
Stop a run by its run_id. cancelled is false when no run is going. Requires itoflow-engine-results.
Operation ID: cancelRiskRun.
POST
https://api.itoflow.ai
/
risk
/
runs
/
{run_id}
/
cancel
Stop a risk run
curl --request POST \
--url https://api.itoflow.ai/risk/runs/{run_id}/cancel \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.itoflow.ai/risk/runs/{run_id}/cancel"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.itoflow.ai/risk/runs/{run_id}/cancel', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"cancelled": true
}{
"error": {
"code": "<string>",
"message": "<string>",
"flag": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"flag": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"flag": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"flag": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"flag": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"flag": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"flag": "<string>"
}
}