pydo.harness.revert_session_checkpoint()
Generated on 6 Nov 2026
from pydo version
v0.45.0
Usage
client.harness.revert_session_checkpoint(
session_id="a1b2c3d4-e5f6-7890-abcd-ef1234567890",
checkpoint_id="cp_9f2c1a4b",
)Description
In-place restore: boots a fresh sandbox from the checkpoint and atomically swaps the session’s sandbox pointer to it, so the session keeps its same session_id; the old sandbox is then torn down.
Parameters
session_idstring requiredExample:
a1b2c3d4-e5f6-7890-abcd-ef1234567890The session UUID.
checkpoint_idstring requiredExample:
cp_9f2c1a4bThe checkpoint id.
Response Example
More Information
See /v2/agents/sessions/{session_id}/checkpoints/{checkpoint_id}/rollback in the API reference for additional detail on responses, headers, parameters, and more.