Change a BOM line
update_bom_lineChange the project's current BOM without sending it again: swap a line's part (e.g. accept an alternative), change its quantity or pack size, add or remove a line, or change the board count. The whole BOM is priced again; returns the new quote_id (older quotes of the project can no longer be ordered), the totals, the problems and the changed line (verbose=true for all lines).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| qty | No | Quantity per board. 0 = do not populate. | |
| line | No | Line number from lines_detail. Omit to add a new line. | |
| part | No | New part: MPN, LCSC code, or Mouser/DigiKey number, e.g. an alternative the user accepted. | |
| boards | No | Change how many boards to build. | |
| reason | No | One line on why, shown to the user in the project's activity log. | |
| refdes | No | Designators, e.g. 'R1,R2'. | |
| remove | No | Remove the line from the BOM. | |
| verbose | No | Return every line of the BOM, not only the changed one. | |
| assembly | No | Switch JLCPCB assembly on or off for this BOM. | |
| pack_size | No | Pieces in one orderable unit of this line's part (5 for a 5-pack); 1 = sold per piece. | |
| project_id | Yes | project_id from create_project or check_bom. | |
| manufacturer | No | Manufacturer of the new part, when the MPN is not unique. | |
| minimize_shipments | No | Switch buying from fewer distributors on or off. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||