Menu
Cancel a task (POST /_tasks/_cancel)
Cancel a task
POST
/_tasks/_cancelUse it in a workflow
- Add a step and choose the Elasticsearch connector.
- Pick the Cancel a task (POST /_tasks/_cancel) action (under tasks).
- Fill in the fields below, then reference the result from later steps as
{{cancelATaskPostTasksCancel.response.data}}.
Request
Query parameters
Response
Returns 200 with an object. Read it in later steps with {{cancelATaskPostTasksCancel.response.data.<field>}}.
{
"node_failures": [
{
"type": "string",
"reason": null,
"stack_trace": "string",
"caused_by": null,
"root_cause": [
{}
],
"suppressed": [
{}
]
}
],
"task_failures": [
{
"task_id": 0,
"node_id": null,
"status": "string",
"reason": null
}
],
"nodes": {},
"tasks": null
}
Need more? See the Elasticsearch guide for connection setup and behaviour shared by every action.
Was this page helpful?