Correct a packing line
update_packing_lineChanges data: corrects what was read off a packing list on one packing line (variety, calibre, quality category, GGN, brand, pack format, box count, box weight or comment), as the person who connected this app, and records it in the organization's audit log. The new value replaces the old one and is kept when the list is read again, so use it only when the user asks to correct a line, and say what will change before calling it. Only the arguments you send change; null or an empty string clears a text field. Net weight is not set: it is recalculated from box weight and box count, and the checks on box count, weights and brands run again. Sending what the line already holds changes nothing, so it is safe to repeat. The answer is the line and changes, each changed field with its old from and new to. Get the packing_line_id (such as "pln_5521") from list_preallocations; to set one field on many lines use set_packing_line_values, and for one GGN on the whole shipment set_shipment_ggn.
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": {
"packing_line_id": "<packing_line_id>"
},
"name": "update_packing_line"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ggn | No | The grower's GGN, 13 digits (spaces and dashes are ignored). | |
| label | No | The brand printed on the box. | |
| calibre | No | The calibre or size, such as "18". | |
| comment | No | A note on the line, such as "soft, sell first". | |
| variety | No | The variety, such as "Hass". | |
| box_count | No | The number of boxes on the line. | |
| pack_format | No | The pack format, such as "4kg". | |
| box_weight_kg | No | The weight of one box in kilograms. | |
| packing_line_id | Yes | A packing line id such as "pln_5521", as returned by list_preallocations. | |
| quality_category | No | The quality category, such as "I" or "Premium". |