clay workflows snapshots list to find the snapshot from just before an unwanted edit, and with clay workflows snapshots get to inspect a snapshot before restoring it.
Restore is destructive and does not itself take a snapshot of the current graph. The pre-restore state is recoverable only if it was already captured — snapshots are taken automatically before each edit and at run start. Check snapshots list first if you might need the current graph back.
Arguments
| Argument | Description |
|---|---|
workflowId | Workflow id, e.g. wf_abc123. Required. |
snapshotId | Snapshot id to restore to, from snapshots list. Required. |
Output
| Field | Type | Description |
|---|---|---|
ok | true | Confirms the workflow was restored. |
Errors
| Code | Exit | Notes |
|---|---|---|
validation_error | 2 | workflowId and snapshotId arguments are required. |
not_found | 6 | No workflow or snapshot with that id. |
auth_forbidden | 3 | The API key lacks permission for this command. |

