Cancel a Brain pipeline run
curl --request PATCH \
--url https://app.hookie.ai/admin/api/data-workspace/pipelines/{pipeline_id}/runs/{run_id} \
--header 'Content-Type: application/json' \
--data '
{
"state": "cancelled"
}
'const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({state: 'cancelled'})
};
fetch('https://app.hookie.ai/admin/api/data-workspace/pipelines/{pipeline_id}/runs/{run_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/data-workspace/pipelines/{pipeline_id}/runs/{run_id}"
payload = { "state": "cancelled" }
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){}Data workspace
Cancel a Brain pipeline run
Requires write access. Only state: cancelled is accepted; a finished run returns 409. Rows already written stay.
PATCH
/
admin
/
api
/
data-workspace
/
pipelines
/
{pipeline_id}
/
runs
/
{run_id}
Cancel a Brain pipeline run
curl --request PATCH \
--url https://app.hookie.ai/admin/api/data-workspace/pipelines/{pipeline_id}/runs/{run_id} \
--header 'Content-Type: application/json' \
--data '
{
"state": "cancelled"
}
'const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({state: 'cancelled'})
};
fetch('https://app.hookie.ai/admin/api/data-workspace/pipelines/{pipeline_id}/runs/{run_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/data-workspace/pipelines/{pipeline_id}/runs/{run_id}"
payload = { "state": "cancelled" }
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){}