FruxonDocs
IntegrationsAssets

Requests cancellation of a pending or in-progress ingestion operation.

Signals the worker to stop and marks the operation `Cancelled` once it observes the signal; chunks that were already embedded and persisted remain in the index. Returns the operation in its post-signal state — typically still `Running` for a short window before transitioning. Already-terminal operations (`Completed`, `Failed`, `Cancelled`) are returned unchanged; the call is idempotent. To remove partial results, follow with `POST /assets/{asset}:refresh` or delete affected documents.

POST
/v1/tenants/{tenant}/assets/{asset}/operations/{operation}:cancel
AuthorizationBearer <token>

JWT Authorization header using the Bearer scheme. Enter 'Bearer' [space] and then your token.

In: header

Path Parameters

operation*string

The operation ID.

Formatuuid
tenant*string

The tenant identifier

asset*string

Response Body

curl -X POST "https://api.fruxon.com/v1/tenants/string/assets/string/operations/497f6eca-6276-4993-bfeb-53cbbbba6f08:cancel"
{
  "id": "00000000-0000-0000-0000-000000000000",
  "assetId": "00000000-0000-0000-0000-000000000000",
  "tenantId": "00000000-0000-0000-0000-000000000000",
  "type": "string",
  "status": "PENDING",
  "done": false,
  "startedAt": 0,
  "completedAt": 0,
  "itemsProcessed": 0,
  "itemsTotal": 0,
  "tokenCount": 0,
  "chunkCount": 0,
  "cost": 0,
  "errorMessage": "string",
  "createdBy": "string"
}
Empty
Empty
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}