Skip to content

Delete one of the caller's captured scopes

DELETE
/api/v1/kg/studio/scopes/{name}
curl --request DELETE \
--url http://localhost:11044/api/v1/kg/studio/scopes/example \
--header 'X-Embabel-Api-Key: <X-Embabel-Api-Key>'
name
required
string

The captured scope’s name, as given in captureAs and listed by GET /kg/studio/scopes; an unknown or expired name is not an error and answers deleted: false

Whether anything was deleted

Media typeapplication/json

The outcome of deleting a captured scope.

object
deleted
required

True when a scope was dropped; false when the user had no live scope of that name, which is not an error.

boolean
name
required

The scope name from the path, echoed back.

string

Example generated

{
"deleted": true,
"name": "example"
}

Not authenticated

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"
}