Add Bom Items


    # Here is a curl example
    curl \
    -X POST "http://localhost:8888/api/BOM/AddItemsInBom" \
    -H "Authorization: {token}" \
    -H "Content-Type: application/json" \
    -d '{
            "parent_object_id": 123,
            "parent_record_id": 123,
            "child_object_id": 123,
            "child_record_id": 123,
            "config_id":123,
            "view_name":"test",
            "quantity":1
      }'

This method allows you to add items to the BOM. You can choose items from different objects.

To add items in BOM, you need to make a POST call to the following url: :
http://localhost:8888/api/BOM/AddItemsInBom



    Result example :
    [
        {
            "Success": "boolean",
            "Message": "string",
            "Data": object,
            "CustomAction": Dictionary<object, object> ,
            "CustomAttributes":Dictionary<object, object>
        }
    ]

From Body Parameters

Field Parameter Type Type Description
parent_object_id body long Parent Object Id.
parent_record_id body long Parent Record Id.
child_object_id body long Child Object Id.
child_record_id body long Child Record Id.
config_id body long Configuration Id. You can get from another method (http://localhost:8888/api/BOM/Variants).
view_name body string View Name. You can get from another method (http://localhost:8888/api/BOM/Views).
quantity body double Quantity.
Authorization header string Add Authorization header token