curl --request POST \
--url https://operator.opus.com/api/v1/case/{YOUR_CASE_ID}/cancel \
--header 'x-service-key: {YOUR_SERVICE_KEY}'
import requests
url = "https://operator.opus.com/api/v1/case/{YOUR_CASE_ID}/cancel"
headers = {"x-service-key": "{YOUR_SERVICE_KEY}"}
response = requests.post(url, headers=headers)
print(response.json())
const response = await fetch(
"https://operator.opus.com/api/v1/case/{YOUR_CASE_ID}/cancel",
{
method: "POST",
headers: {
"x-service-key": "{YOUR_SERVICE_KEY}",
},
}
);
const data = await response.json();
console.log(data);
{
"status": "CANCELLED"
}
Cases
Cancel Case
Stop a case that is still running
POST
/
api
/
v1
/
case
/
{caseId}
/
cancel
curl --request POST \
--url https://operator.opus.com/api/v1/case/{YOUR_CASE_ID}/cancel \
--header 'x-service-key: {YOUR_SERVICE_KEY}'
import requests
url = "https://operator.opus.com/api/v1/case/{YOUR_CASE_ID}/cancel"
headers = {"x-service-key": "{YOUR_SERVICE_KEY}"}
response = requests.post(url, headers=headers)
print(response.json())
const response = await fetch(
"https://operator.opus.com/api/v1/case/{YOUR_CASE_ID}/cancel",
{
method: "POST",
headers: {
"x-service-key": "{YOUR_SERVICE_KEY}",
},
}
);
const data = await response.json();
console.log(data);
{
"status": "CANCELLED"
}
Cancel the execution of a case that is still running. The case ends with status
CANCELLED, which Get Case Status will return from then on.
Only a case that has been executed and has not yet reached a terminal status can be cancelled.
Path Parameters
The case ID returned by Initiate Case
Headers
Response
Errors
curl --request POST \
--url https://operator.opus.com/api/v1/case/{YOUR_CASE_ID}/cancel \
--header 'x-service-key: {YOUR_SERVICE_KEY}'
import requests
url = "https://operator.opus.com/api/v1/case/{YOUR_CASE_ID}/cancel"
headers = {"x-service-key": "{YOUR_SERVICE_KEY}"}
response = requests.post(url, headers=headers)
print(response.json())
const response = await fetch(
"https://operator.opus.com/api/v1/case/{YOUR_CASE_ID}/cancel",
{
method: "POST",
headers: {
"x-service-key": "{YOUR_SERVICE_KEY}",
},
}
);
const data = await response.json();
console.log(data);
{
"status": "CANCELLED"
}
Was this page helpful?