Skip to content

Approve or reject a write parked at a confirmation gate, by process id

POST
/api/v1/admin/code-action/respond
curl --request POST \
--url 'http://localhost:11044/api/v1/admin/code-action/respond?processId=example&accepted=true' \
--header 'X-Embabel-Api-Key: <X-Embabel-Api-Key>'
processId
required
string

Id of the agent process parked at the confirmation gate, as returned in processId by a run that answered awaitingConfirmation; 400 when the process is unknown, expired or not awaiting confirmation

accepted
boolean
default: true

true (the default) approves the parked write so its commit step runs; false rejects it, and the write never happens

The resumed process

Media typeapplication/json

A process resumed from its confirmation gate

object
accepted
required

Whether the write was approved. A rejected write’s commit step never runs

boolean
awaitingConfirmation
required

True when the process has parked again at another gate — a plan with several writes asks once per write

boolean
processId
required

The process id, as given

string
status
required

The process’s status after resuming, such as COMPLETED or WAITING

string

Example generated

{
"accepted": true,
"awaitingConfirmation": true,
"processId": "example",
"status": "example"
}

Unknown or expired process, or process not awaiting confirmation

Media typeapplication/json

A refusal carrying only its reason, with no status word

object
error
required

Why the request was refused, written to be shown

string

Example generated

{
"error": "example"
}