Skip to content

Kill a background lens run

POST
/api/v1/lenses/runs/{runId}/kill
curl --request POST \
--url http://localhost:11044/api/v1/lenses/runs/example/kill \
--header 'X-Embabel-Api-Key: <X-Embabel-Api-Key>'

Best-effort stop; the run settles CANCELLED.

runId
required
string

The background run to stop

Not authenticated. The filter chain answers an ApiError; a principal that resolves to no user answers the refusal

One of:

A request-level refusal from the headless surface. Carries only the reason; an execution that ran and failed answers 200 with the outcome in its envelope instead

object
error
required

Why the request was refused, written to be shown: the unknown lens, view or run, the argument at fault, or the field the body should not have

string

Example generated

{
"error": "example"
}

No such run for this user

Media typeapplication/json

A request-level refusal from the headless surface. Carries only the reason; an execution that ran and failed answers 200 with the outcome in its envelope instead

object
error
required

Why the request was refused, written to be shown: the unknown lens, view or run, the argument at fault, or the field the body should not have

string

Example generated

{
"error": "example"
}