Set one value on several packing lines
set_packing_line_valuesChanges data: sets one field (GGN, brand, comment or quality category) to one value on several packing lines of one shipment, as the person who connected this app, and records it in the organization's audit log. Each line is corrected as update_packing_line does, so the value replaces the old one and is kept when the list is read again. Use it only when the user asks, for example "put this GGN on the pallets of that grower", and say which lines and what value before calling it. An empty value clears the field. A line that already has the value is left alone, so it is safe to repeat. A packing line id that is not on this shipment is refused and nothing changes. The answer lists changed_lines. Get the shipment and the packing_line_ids from list_preallocations.
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": {
"shipment_id": "<shipment_id>",
"packing_line_ids": "<packing_line_ids>",
"field": "<field>",
"value": "<value>"
},
"name": "set_packing_line_values"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| field | Yes | The field to set. | |
| value | Yes | The value to set on every line; empty to clear the field. A GGN is 13 digits (spaces and dashes are ignored). | |
| shipment_id | Yes | A shipment id such as "shp_123", as returned by search_shipments. | |
| packing_line_ids | Yes | The packing lines to change, such as ["pln_5521", "pln_5522"]. |