Actions24
- Code Interpreter Actions
- Command Actions
- File Actions
- Sandbox Actions
- Snapshot Actions
Snapshot → Restore
AI-generatedSummary
Restores a Declaw sandbox from a snapshot, using either a specified snapshot ID or the latest snapshot. Sends a POST to the Declaw API at /sandboxes/{sandboxId}/restore.
Inputs
- Sandbox ID (required) — ID of the sandbox to restore (e.g. sbx-a1b2c3d4). Inserted into the request path.
- Snapshot ID — ID of the snapshot to restore (e.g. snap-a1b2c3d4). If left empty, no snapshot_id query parameter is sent and the API restores from the latest snapshot.
Output shape
One output item per input item, containing the JSON response returned by the Declaw restore endpoint.
The source does not transform the response, so its fields depend on the Declaw API. On error, the node throws a NodeApiError. If Continue On Fail is enabled, it emits an item with {error: message} instead.
Examples
Example 1: Roll a sandbox back to its most recent snapshot after a failed experiment.
Resource: Snapshot, Operation: Restore, Sandbox ID: sbx-a1b2c3d4, Snapshot ID left empty.
Example 2: Restore a sandbox to a specific known-good snapshot taken earlier in the workflow.
Resource: Snapshot, Operation: Restore, Sandbox ID: {{$json.sandbox_id}}, Snapshot ID: snap-a1b2c3d4.