brain_backup_restore
DESTRUCTIVE: full-replace restore of the current product's Brain from a snapshot (wipe + load).
DESTRUCTIVE: full-replace restore of the current product's Brain from a snapshot (wipe + load). Takes an automatic pre-restore snapshot first (safety net). Requires confirm:true AND confirmProductId echo; refuses on product/snapshot mismatch or embedding-dims mismatch. Async — returns { accepted, restoreId }; poll brain_restore_status.
Behavior
- HTTP
POST /brain/restores
Arguments
| Name | Type | Required | Description |
|---|---|---|---|
| confirm | boolean | • | Must be true. DESTRUCTIVE: the product's current Brain is wiped and replaced. |
| snapshotId | string | • | The snapshot id to restore for the current product. |
| confirmProductId | string | • | Must EXACTLY equal the current product id (double-entry confirmation). |
Response
| Field | Type | Always | Description |
|---|---|---|---|
| accepted | boolean | • | |
| restoreId | string | • |
Try it
DESTRUCTIVE: full-replace restore of the current product's Brain from a snapshot (wipe + load).