Update purchase order line
update_purchase_order_lineUpdate a purchase order line item. Requires purchase_orders:write scope. To receive goods, set quantity_received; for a line with a part, the change is added to (or taken from) that part's stock. A line with stock received cannot change its part.
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": {
"id": "<id>"
},
"name": "update_purchase_order_line"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Purchase order line ID | |
| part_id | No | Part from inventory - resolve via list_parts | |
| quantity | No | Quantity ordered | |
| unit_cost | No | Price per unit, in the organization currency | |
| description | No | What is being ordered | |
| line_number | No | Position on the order | |
| quantity_received | No | Quantity received so far, 0 to quantity |