Update Vendor Price Book
update_supplier_price_bookUpdate a vendor price book by id with FULL-REPLACE semantics (identical to the web app's edit form): the supplied payload becomes the book's whole metadata state, so omitted optional fields are cleared/defaulted, not preserved — except leadTimeRules and runQuantityLimits, where null keeps the book's current value (send [] or {"minimum": null, "maximum": null} to clear them). Client attribution is immutable. Changing the schema's cost-driver key set while the book has breaks is refused (it would orphan the grid) — replace the grid via replace_price_book_breaks instead. A client-pinned token can only update its own client's books, never the shared house books.
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>",
"input": "<input>"
},
"name": "update_supplier_price_book"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | The book's full replacement state (supplierId + name required; omitted optional fields clear, except null leadTimeRules / runQuantityLimits, which keep the current value). | |
| bookId | Yes | The price book id (GUID) to update. | |
| preview | No | Step 1 of the required two-step write: set true to validate and receive a structured preview plus 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 of the required two-step write: the receipt returned by the preview call. Supply together with a fresh idempotencyKey to commit; calls without it are refused. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| book | No | ||
| preview | No | ||
| expiresAt | No | ||
| nextAction | No | ||
| actionItemId | No | ||
| confirmation | No | ||
| appliedUpdate | No | ||
| correlationId | No | ||
| approvalResult | No | ||
| idempotencyKey | No | ||
| previewReceipt | No | ||
| maxRowsPerChunk | No | ||
| idempotentReplay | No | ||
| recommendedNextTool | No |