Change a pre-allocation
update_preallocationChanges data: changes the customer, the boxes or the tentative price of one pre-allocation, as the person who connected this app, and records it in the organization's audit log. Use it only when the user asks to change one, and say what will change before calling it. Only the arguments you send change; the rest stay. unit_price: null removes the price and its currency; a price_basis of "total" makes unit_price the total for the boxes. The line's boxes cannot be over-allocated. Get the preallocation_id from list_preallocations. To release the boxes altogether use delete_preallocation.
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": {
"preallocation_id": "<preallocation_id>"
},
"name": "update_preallocation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| boxes | No | How many boxes to set aside. | |
| currency | No | ISO 4217 code such as "EUR". Required with unit_price. | |
| allocatee | No | The customer the boxes are for, such as "Acme BV". Reuse the spelling list_preallocations shows. | |
| unit_price | No | The tentative price, per box unless price_basis is "total". A number, or a string such as "12.50". | |
| price_basis | No | "box" (default) when unit_price is per box, "total" when it is the total for these boxes. | |
| preallocation_id | Yes | A pre-allocation id such as "pre_78", as returned by list_preallocations. |