Undo an agent run

Undoes the run agentRun.undo.preview showed (its confirmation_token, the same Idempotency-Key) through Cybooks' own Undo: newest first, each line through its own inverse (a booking unmatched, never hard-deleted) in its own transaction, checked again; a refused line stays booked and is named in results, the others go on. Answers results, undone, refused and the run's undo_state. 412 when the lines changed since the preview; 409 run_live while the run goes on, 409 batch_checking while a confirm of one of its batches still books (the token stays good for a later call); the same call again after an Undo that went answers 409 confirmation_already_claimed and points to agentRun.show, which reads the run's undo_state. An MCP call is an agent's reversal: refused 409 agents_stopped while the company has stopped its agents, and under the reversal approval setting. Requires the agent-runs:action OAuth scope with access_ask_cybooks, and the person's own permission for each line.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

The run's id, from agentRun.list

Body Params

Confirmed values used to undo an agent run, including the confirmation token returned by agentRun.undo.preview.

string
required
length ≤ 4096

The confirmation_token agentRun.undo.preview returned for this run, sent with the same Idempotency-Key within 300 seconds

Headers
string
required
length ≤ 191

Required operation-specific request key. This requirement does not imply durable public API response replay.

Responses

Language
Credentials
OAuth2
Missing 1 required scope
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
*/*