Skip to content

Run one tick of a decorator now over its stale candidates

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

The decorator’s registered name, exact and case-sensitive, as listed by GET /admin/kg/decorate; an unknown name answers 404 with the reason in error

What the tick did

Media typeapplication/json

What one decoration tick did.

object
candidates
required

Stale nodes this tick picked up. 0 with an error means the decorator is unknown.

integer format: int32
decorated
required

Candidates decorated and stamped.

integer format: int32
decorator
required

The decorator name from the path, echoed back, whether or not it is registered.

string
error

Why the tick could not complete, or null. Always present.

string
failed
required

Candidates whose decoration threw; they stay unstamped, so a later tick tries them again. Above 0 on a forced run answers 500.

integer format: int32
skipped
required

Candidates passed over without decorating: no node could be loaded, no single owning user could be resolved, or the tick was interrupted.

integer format: int32

Example generated

{
"candidates": 1,
"decorated": 1,
"decorator": "example",
"error": "example",
"failed": 1,
"skipped": 1
}

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

Unknown decorator: the report carries the reason in error, with no candidates

Media typeapplication/json

What one decoration tick did.

object
candidates
required

Stale nodes this tick picked up. 0 with an error means the decorator is unknown.

integer format: int32
decorated
required

Candidates decorated and stamped.

integer format: int32
decorator
required

The decorator name from the path, echoed back, whether or not it is registered.

string
error

Why the tick could not complete, or null. Always present.

string
failed
required

Candidates whose decoration threw; they stay unstamped, so a later tick tries them again. Above 0 on a forced run answers 500.

integer format: int32
skipped
required

Candidates passed over without decorating: no node could be loaded, no single owning user could be resolved, or the tick was interrupted.

integer format: int32

Example generated

{
"candidates": 1,
"decorated": 1,
"decorator": "example",
"error": "example",
"failed": 1,
"skipped": 1
}