Context

Cancel a context add job

DELETE
/api/v1/context/add-async/{id}/cancel

Attempts to cancel a context add job by job id.

  • If the job is already completed or failed, returns 404.
  • If the job is currently running ("active"), returns 409 and cannot be cancelled.
  • Only jobs in "waiting" or "delayed" state can be cancelled.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Job ID to cancel

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X DELETE "https://example.com/api/v1/context/add-async/string/cancel"
{  "success": true,  "jobId": "string",  "status": "string",  "message": "string"}