Skip to content

Delete a user-authored view from the acting user's world

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

The view’s name, as GET /views lists it.

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.

View deleted

Media typeapplication/json

A user-authored view was deleted.

object
name
required

The deleted view’s name, as given in the path.

string
status
required

Always deleted.

string

Example generated

{
"name": "example",
"status": "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"
}

No saved view of that name

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