Skip to content

Cancel an in-flight run by id (owner-guarded)

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

The run handle returned by a background or timed-out execution.

username
string

Optional, and never needed: the call always acts as the signed-in principal. Naming the principal changes nothing; naming anyone else is refused with 403.

Whether the kill landed

Media typeapplication/json

The outcome of a kill request.

object
killed
required

False when the run had already settled, or was never the caller’s.

boolean
runId
required

The run id from the path, echoed back.

string

Example generated

{
"killed": true,
"runId": "example"
}

No authenticated principal

Media typeapplication/json

A refusal carrying only a human-readable reason.

object
error
required

What went wrong, in the terms the caller can act on.

string

Example generated

{
"error": "example"
}

username names someone other than the signed-in principal

Media typeapplication/json

A refusal carrying only a human-readable reason.

object
error
required

What went wrong, in the terms the caller can act on.

string

Example generated

{
"error": "example"
}