Skip to content

Stop every agent in your world

POST
/api/v1/halt
curl --request POST \
--url http://localhost:11044/api/v1/halt \
--header 'Content-Type: application/json' \
--header 'X-Embabel-Api-Key: <X-Embabel-Api-Key>' \
--data '{ "reason": "example" }'

Every routine and duty is off from the next tick, and a run already going is refused its writes. Lifting the halt restores every stage.

reason, optional, says why everything is being stopped and is shown with the halt to whoever reads it later; send {} to halt without one

Media typeapplication/json

Why every agent is being stopped, kept with the halt for whoever reads it later; sent to POST /halt

object
reason

The reason, trimmed; null, absent or blank records none

string

Example generated

{
"reason": "example"
}

Halted

Media typeapplication/json

Whether every agent in the caller’s world is stopped, and by whom; answered by GET, POST and DELETE /halt

object
at

When the halt began, ISO-8601 instant; null when it is not halted

string
by

Username of whoever halted the world; null when it is not halted

string
halted
required

True while the halt is in force: no routine or duty fires and a run already going is refused its writes

boolean
reason

The reason given for the halt; null when it is not halted or none was given

string

Example generated

{
"at": "example",
"by": "example",
"halted": true,
"reason": "example"
}

No authenticated principal

One of:

A refusal with a machine-readable code and a plain-language message. ApiErrorAdvice answers it for a failed validation, a missing resource or a conflicting state, and some controllers answer it directly

object
code
required

Machine-readable key to branch on, such as validation_failed, unknown_field, not_found or conflict. Open: a surface may answer codes of its own

string
detail

Extra context where there is some, such as the fields a body may carry; null otherwise

string
message
required

A plain-language explanation, written to be shown. Never carries an exception message

string

Example generated

{
"code": "example",
"detail": "example",
"message": "example"
}

No world