Automation
Post v1automationrunsbulk cancel
POST
/
v1
/
automation
/
runs
/
bulk-cancel
cURL
curl --request POST \
--url https://api.wazapin.com/v1/automation/runs/bulk-cancel \
--header 'Content-Type: application/json' \
--data '
{
"run_ids": [
"<string>"
]
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({run_ids: ['<string>']})
};
fetch('https://api.wazapin.com/v1/automation/runs/bulk-cancel', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/automation/runs/bulk-cancel"
payload = { "run_ids": ["<string>"] }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}Body
application/json
Response
No Content
⌘I
cURL
curl --request POST \
--url https://api.wazapin.com/v1/automation/runs/bulk-cancel \
--header 'Content-Type: application/json' \
--data '
{
"run_ids": [
"<string>"
]
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({run_ids: ['<string>']})
};
fetch('https://api.wazapin.com/v1/automation/runs/bulk-cancel', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/automation/runs/bulk-cancel"
payload = { "run_ids": ["<string>"] }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}