Approve or reject a write parked at a confirmation gate, by process id
const url = 'http://localhost:11044/api/v1/admin/code-action/respond?processId=example&accepted=true';const options = {method: 'POST', headers: {'X-Embabel-Api-Key': '<X-Embabel-Api-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”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
true (the default) approves the parked write so its commit step runs; false rejects it, and the write never happens
Responses
Section titled “Responses”The resumed process
A process resumed from its confirmation gate
object
Whether the write was approved. A rejected write’s commit step never runs
True when the process has parked again at another gate — a plan with several writes asks once per write
The process id, as given
The process’s status after resuming, such as COMPLETED or WAITING
Example generated
{ "accepted": true, "awaitingConfirmation": true, "processId": "example", "status": "example"}Unknown or expired process, or process not awaiting confirmation
A refusal carrying only its reason, with no status word
object
Why the request was refused, written to be shown
Example generated
{ "error": "example"}
