Cancel a pending async operation
DELETE/v1/default/banks/{bank_id}/operations/{operation_id}Cancel a pending async operation by removing it from the queue
Authentication required — include an
Authorization: Bearer hsk_...header. See Authentication for details.
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
bank_id | string | Yes | |
operation_id | string | Yes |
Example Request
bash
curl -X DELETE 'https://api.hindsight.vectorize.io/v1/default/banks/your-bank-id/operations/your-operation-id' \
-H 'Authorization: Bearer hsk_your_api_key'Responses
200 — Successful Response
json
{
"message": "Operation 550e8400-e29b-41d4-a716-446655440000 cancelled",
"operation_id": "550e8400-e29b-41d4-a716-446655440000",
"success": true
}422 — Validation Error
json
{
"detail": [
{
"loc": [
null
],
"msg": "Message",
"type": "Error Type",
"input": null,
"ctx": {},
"url": "URL"
}
]
}Source: /v1/default/banks/{bank_id}/operations/{operation_id}