Restore Price Book
restore_price_bookRestore an archived (soft-deleted) price book so it can price quotes and runs again. The book and its grid reappear in lists and the resolve path accepts them. Two-step: preview=true shows the book and what references it and returns a single-use previewReceipt; repeat the call with that receipt and a fresh idempotencyKey to restore. Requires an operator (unpinned) credential.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"bookId": "<bookId>"
},
"name": "restore_price_book"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bookId | Yes | The archived price book id (GUID) to restore. | |
| preview | No | Step 1 of the required two-step write: set true to see the book being restored and receive a single-use previewReceipt. Nothing is changed until the commit call. | |
| idempotencyKey | No | Caller-generated idempotency key; required with previewReceipt to commit. | |
| previewReceipt | No | Step 2: the receipt returned by the preview call. Supply together with a fresh idempotencyKey to commit the restore. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| applied | No | ||
| preview | No | ||
| expiresAt | No | ||
| actionItemId | No | ||
| confirmation | No | ||
| correlationId | No | ||
| approvalResult | No | ||
| archivedBookId | No | ||
| idempotencyKey | No | ||
| previewReceipt | No | ||
| restoredBookId | No | ||
| idempotentReplay | No |