Skip to main content
POST
/
api
/
v1
/
org
/
executions
/
{execution_id}
/
steps
/
{step_id}
/
cancel
Cancel a step within an execution
import requests

url = "https://platform.ankra.app/api/v1/org/executions/{execution_id}/steps/{step_id}/cancel"

headers = {"Authorization": "Bearer <token>"}

response = requests.post(url, headers=headers)

print(response.text)
{
  "execution_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "step_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Documentation Index

Fetch the complete documentation index at: https://docs.ankra.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

authorization
string | null
x-ankra-organisation-id
string | null

Path Parameters

execution_id
string<uuid4>
required
step_id
string<uuid4>
required

Response

Successful Response

execution_id
string<uuid>
required
step_id
string<uuid>
required
status
enum<string>
required
Available options:
running,
success,
failed,
timeout,
pending,
blocked,
cancelling,
cancelled