Skip to content

Update an existing BillOfMaterials Record

Request

Update an existing BillOfMaterials record to the system based on the provided BillOfMaterials details.

Security
Bearer
Bodyapplication/jsonrequired

The BillOfMaterials payload

idstring, (uuid)

Gets or sets the unique identifier of the BOM line record.

Example:"1fa85f64-5717-4562-b3fc-2c963f66aaaa"
productIdstring, (uuid)required

Gets or sets the associated product identifier.

Example:"2fa85f64-5717-4562-b3fc-2c963f66bbbb"
productNamestring or null

Gets or sets the associated product name.

Example:"Laptop Model X"
skuidstring, (uuid)required

Gets or sets the associated SKU identifier.

Example:"3fa85f64-5717-4562-b3fc-2c963f66cccc"
skuNamestring or null

Gets or sets the SKU name.

Example:"Laptop Model X - 16GB Variant"
bomtypestring, non-emptyrequired

Gets or sets the BOM type.

Example:"[M-BOM,S-BOM]"
bomidstring, non-emptyrequired

Gets or sets the BOM identifier.

Example:"BOM001"
bomlineIdstring or null

Gets or sets the BOM line identifier.

Example:"BOM001-L01"
partNostring or null

Gets or sets the part number.

Example:"PRT-1001"
partNamestring or null

Gets or sets the part name.

Example:"Battery Pack"
newPurchasedGoodboolean or null

Gets or sets whether the part is a newly purchased good.

Example:true
prodInflowIdinteger or null, (int32)

Gets or sets the purchased goods inflow identifier.

Example:101
itemConfigurableIdstring or null

Gets or sets the item identifier from inflow.

Example:"ITEM001"
itemNamestring or null

Gets or sets the item name from inflow.

Example:"Lithium Battery"
unitOfMeasurestring, non-emptyrequired

Gets or sets the unit of measure.

Example:"[Grams, Litres, m3, pieces]"
quantitynumber, (double)required

Gets or sets the quantity required for the BOM line.

Example:2.5
specificationstring or null

Gets or sets additional specification details.

Example:"High capacity 5000mAh"
curl -i -X PUT \
  https://developer.sustainabilitymaster.ai/_mock/openapi/api/EnterpriseTables/BillOfMaterials \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'Content-Type: application/json' \
  -d '{
    "id": "1fa85f64-5717-4562-b3fc-2c963f66aaaa",
    "productId": "2fa85f64-5717-4562-b3fc-2c963f66bbbb",
    "productName": "Laptop Model X",
    "skuid": "3fa85f64-5717-4562-b3fc-2c963f66cccc",
    "skuName": "Laptop Model X - 16GB Variant",
    "bomtype": "[M-BOM,S-BOM]",
    "bomid": "BOM001",
    "bomlineId": "BOM001-L01",
    "partNo": "PRT-1001",
    "partName": "Battery Pack",
    "newPurchasedGood": true,
    "prodInflowId": 101,
    "itemConfigurableId": "ITEM001",
    "itemName": "Lithium Battery",
    "unitOfMeasure": "[Grams, Litres, m3, pieces]",
    "quantity": 2.5,
    "specification": "High capacity 5000mAh"
  }'

Responses

Successfully added the BillOfMaterials record