Operazioni di manutenzione
2 operazioni di nome maintenance.*. Ognuna si esegue in un batch con apply_ops, dry_run_ops, la CLI o l’admin.
| Operation | What it does | Permission | Confirmation |
|---|---|---|---|
| maintenance.migrate | Bring the draft page trees in line with the theme's component props: a prop removed or retyped since the site's last props snapshot is stripped from every draft tree, all pages or none, after a backup of the trees it changes (an added prop writes nothing). | site.admin | destructive |
| maintenance.restoreBackup | Restore the draft page trees a migration backup holds (backupId): each page's root children go back to the backup's, in one commit for all the pages. | site.admin | destructive |
maintenance.migrate
Bring the draft page trees in line with the theme's component props: a prop removed or retyped since the site's last props snapshot is stripped from every draft tree, all pages or none, after a backup of the trees it changes (an added prop writes nothing). A publish runs the same step. It runs in one transaction and is not undone: recovery is maintenance.restoreBackup.
Esempio di input
{}Input
L’input è un record: vedi lo schema qui sotto.
{
"type": "object",
"properties": {},
"additionalProperties": false
}Output
| Field | Type | Required | Notes |
|---|---|---|---|
| auto | record of any JSON | null | yes |
Vuole confirmed: ["destructive"] sul batch, che la forma della CLI per una sola operazione non imposta: mettila in un file di batch ed esegui yarn splash apply <file> --dry-run.
maintenance.restoreBackup
Restore the draft page trees a migration backup holds (backupId): each page's root children go back to the backup's, in one commit for all the pages. It runs in one transaction and is not undone: recovery is maintenance.restoreBackup.
Esempio di input
{
"backupId": "backup-2026-10-16"
}Input
| Field | Type | Required | Notes |
|---|---|---|---|
| backupId | string | yes | At least 1 character. |
Output
| Field | Type | Required | Notes |
|---|---|---|---|
| success | true | yes | |
| restoredCount | integer | yes | At least 0. |
| pageCount | integer | yes | At least 0. |
Vuole confirmed: ["destructive"] sul batch, che la forma della CLI per una sola operazione non imposta: mettila in un file di batch ed esegui yarn splash apply <file> --dry-run.
Generato dal registro delle operazioni e dal catalogo degli strumenti MCP (sorgente 97402baa5e59c72f).
Qualcosa non va in questa pagina? Scrivi a docs@librettocms.com.