{
"body": {
"itemCode": "string",
"useQty": 0,
"comment": "string",
"bomVersion": "string",
"bomComponents": [
{
"itemCode": "string",
"useQty": 0,
"bomVersion": "string",
"comment": "string",
"attritionRate": 0,
"procedureCode": "string",
"distributeOrder": "string",
"keyMaterial": true,
"customizeFields": {
"key": {}
},
"conditions": [
[
{
"specificationName": "string",
"operatorType": "EQUAL",
"value": "string"
}
]
],
"subConditions": [
{
"specificationName": "string",
"valueType": "CONSTANT",
"value": "string"
}
]
}
],
"syncRouting": true,
"customizeFields": {
"key": {}
}
}
}curl --location --request POST 'https://c2.xinheyun.com/api/open/v3/boms/create' \
--header 'Cookie;' \
--header 'Content-Type: application/json' \
--data-raw '{
"body": {
"itemCode": "string",
"useQty": 0,
"comment": "string",
"bomVersion": "string",
"bomComponents": [
{
"itemCode": "string",
"useQty": 0,
"bomVersion": "string",
"comment": "string",
"attritionRate": 0,
"procedureCode": "string",
"distributeOrder": "string",
"keyMaterial": true,
"customizeFields": {
"key": {}
},
"conditions": [
[
{
"specificationName": "string",
"operatorType": "EQUAL",
"value": "string"
}
]
],
"subConditions": [
{
"specificationName": "string",
"valueType": "CONSTANT",
"value": "string"
}
]
}
],
"syncRouting": true,
"customizeFields": {
"key": {}
}
}
}'{
"code": 0,
"message": ""
}