Create a bill of materials
dolibarr_bom_createCreates a draft BOM for a product with component lines; validation is required in the Dolibarr web interface before the BOM can be used on a manufacturing order.
Instructions
Creates a draft BOM for a product, with its component lines. The standard API has no route to validate a BOM: the user validates it in the Dolibarr web interface before it can be used on a manufacturing order.
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": {
"product_id": "<product_id>",
"label": "<label>"
},
"name": "dolibarr_bom_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| qty | No | Quantity of the product one run of this BOM makes. | |
| type | No | manufacture | |
| label | Yes | ||
| lines | No | ||
| product_id | Yes | The product the BOM makes. | |
| note_private | No |