Rename Price Book Attribute
adopt_price_book_attribute_keyRename one vendor attribute key on a DRAFT price book, rewriting and rehashing every price break that carries it. This is optional schema cleanup; it does NOT bind the attribute to an item field. Use map_price_book_attribute for the authoritative canonical field and option mapping. Draft only — activation freezes keys because saved sourcing profiles and break hashes then depend on them.
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>",
"fromKey": "<fromKey>",
"toKey": "<toKey>"
},
"name": "adopt_price_book_attribute_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| toKey | Yes | The replacement vendor-side machine key. This does not create a canonical mapping. | |
| bookId | Yes | The DRAFT price book id (GUID). | |
| fromKey | Yes | The attribute key as the book currently spells it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| toKey | No | ||
| bookId | No | ||
| fromKey | No | ||
| attributeKeys | No |