Python
import requests url = "https://platform.ankra.app/api/v1/org/operations/{operation_id}/jobs/{job_id}/cancel" headers = {"Authorization": "Bearer <token>"} response = requests.post(url, headers=headers) print(response.text)
{ "operation_id": "<string>", "job_id": "<string>", "job_status": "running" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Job cancelled successfully
running
success
failed
timeout
pending
blocked
cancelling
cancelled