POST api/ProductionPlanning/AddEditDeleteBOM
Request Information
URI Parameters
None.
Body Parameters
AddEditDeleteBOMPrm| Name | Description | Type | Additional information |
|---|---|---|---|
| bomName | string |
None. |
|
| bomMasterId | integer |
None. |
|
| warehouseId | integer |
None. |
|
| labourCharge | decimal number |
None. |
|
| machineryCharge | decimal number |
None. |
|
| electricityCharges | decimal number |
None. |
|
| otherCharges | decimal number |
None. |
|
| status | integer |
None. |
|
| remarks | string |
None. |
|
| rawMaterialPrm | Collection of AddEditDeleteBOMPrmTbl |
None. |
|
| finishedGoodPrmPrm | Collection of AddEditDeleteBOMPrmTbl |
None. |
Request Formats
application/json, text/json
Sample:
{
"bomName": "sample string 1",
"bomMasterId": 2,
"warehouseId": 3,
"labourCharge": 4.0,
"machineryCharge": 5.0,
"electricityCharges": 6.0,
"otherCharges": 7.0,
"status": 8,
"remarks": "sample string 9",
"rawMaterialPrm": [
{
"itemMasterId": 1,
"itemQuantity": 2.0,
"unitPrice": 3.0
},
{
"itemMasterId": 1,
"itemQuantity": 2.0,
"unitPrice": 3.0
}
],
"finishedGoodPrmPrm": [
{
"itemMasterId": 1,
"itemQuantity": 2.0,
"unitPrice": 3.0
},
{
"itemMasterId": 1,
"itemQuantity": 2.0,
"unitPrice": 3.0
}
]
}
text/html
Sample:
{"bomName":"sample string 1","bomMasterId":2,"warehouseId":3,"labourCharge":4.0,"machineryCharge":5.0,"electricityCharges":6.0,"otherCharges":7.0,"status":8,"remarks":"sample string 9","rawMaterialPrm":[{"itemMasterId":1,"itemQuantity":2.0,"unitPrice":3.0},{"itemMasterId":1,"itemQuantity":2.0,"unitPrice":3.0}],"finishedGoodPrmPrm":[{"itemMasterId":1,"itemQuantity":2.0,"unitPrice":3.0},{"itemMasterId":1,"itemQuantity":2.0,"unitPrice":3.0}]}
application/xml, text/xml
Sample:
<AddEditDeleteBOMPrm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Models">
<bomMasterId>2</bomMasterId>
<bomName>sample string 1</bomName>
<electricityCharges>6</electricityCharges>
<finishedGoodPrmPrm>
<AddEditDeleteBOMPrmTbl>
<itemMasterId>1</itemMasterId>
<itemQuantity>2</itemQuantity>
<unitPrice>3</unitPrice>
</AddEditDeleteBOMPrmTbl>
<AddEditDeleteBOMPrmTbl>
<itemMasterId>1</itemMasterId>
<itemQuantity>2</itemQuantity>
<unitPrice>3</unitPrice>
</AddEditDeleteBOMPrmTbl>
</finishedGoodPrmPrm>
<labourCharge>4</labourCharge>
<machineryCharge>5</machineryCharge>
<otherCharges>7</otherCharges>
<rawMaterialPrm>
<AddEditDeleteBOMPrmTbl>
<itemMasterId>1</itemMasterId>
<itemQuantity>2</itemQuantity>
<unitPrice>3</unitPrice>
</AddEditDeleteBOMPrmTbl>
<AddEditDeleteBOMPrmTbl>
<itemMasterId>1</itemMasterId>
<itemQuantity>2</itemQuantity>
<unitPrice>3</unitPrice>
</AddEditDeleteBOMPrmTbl>
</rawMaterialPrm>
<remarks>sample string 9</remarks>
<status>8</status>
<warehouseId>3</warehouseId>
</AddEditDeleteBOMPrm>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
VCAPIResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | string |
None. |
|
| dateTime | string |
None. |
|
| StatusCode | integer |
None. |
|
| ErrorMessage | string |
None. |
|
| Result | Object |
None. |
Response Formats
application/json, text/json
Sample:
{
"Version": "1.0.0",
"dateTime": "2025/12/28 05:17:20",
"StatusCode": 1,
"ErrorMessage": "sample string 2",
"Result": {}
}
text/html
Sample:
{"Version":"1.0.0","dateTime":"2025/12/28 05:17:20","StatusCode":1,"ErrorMessage":"sample string 2","Result":{}}
application/xml, text/xml
Sample:
<VCAPIResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Models"> <ErrorMessage>sample string 2</ErrorMessage> <Result /> <StatusCode>1</StatusCode> </VCAPIResponse>