Create a BOM Mapping Rule
post
/rest/v19/allProductFamilySetups/{allProdFamsVarName}/productFamilies/{prodFamVarName}/productLines/{prodLineVarName}/models/{modelVarName}/bomMappingRules
Use this endpoint to create a BOM Mapping Rule.
Request
Supported Media Types
- application/json
Path Parameters
-
allProdFamsVarName(required): string
Variable Name
-
modelVarName(required): string
Variable Name of the Product Line
-
prodFamVarName(required): string
Variable Name
-
prodLineVarName(required): string
Variable Name of the Product Line
Root Schema : Bom Mapping Rule
Type:
objectTitle:
Show Source
Bom Mapping Rule-
actionType:
object Action Type
Title:
Action TypeAction Type of The Rule -
bomVariableName:
string
Title:
BOM Variable NameVariable Name of the target BOM -
conditionExpression:
string
Title:
Condition ExpressionCondition Expression of Rule -
conditionType:
object Condition Type
Title:
Condition TypeCondition Type of Rule -
dateAdded:
string
Title:
Date AddedSystem field indicating the date on which the Resource was created. -
dateModified:
string
Title:
Date ModifiedSystem field indicating the date on which the Resource was last modified. -
description:
string
Title:
DescriptionDescription of the Bom Mapping Rule -
detailType:
object Detail Type
Title:
Detail TypeDetail Type of Rule -
endDate:
string
Title:
End DateEnd Date -
id:
integer
Title:
IdPrimary Key Of The Resource -
label:
string
Title:
Bom Mapping Rule NameName of the Bom Mapping Rule -
orderNumber:
integer
Title:
Order NumberOrder Number of the Bom Mapping Rule -
processVariableName:
string
Title:
Process Variable NameVariable Name of the Process -
refType:
object Reference Type
Title:
Reference TypeType of the Reference -
ruleType:
object Rule Type
Title:
Rule TypeType of the Rule -
startDate:
string
Title:
Start DateStart Date -
status:
object Rule Status
Title:
Rule StatusStatus of Rule -
variableName:
string
Title:
Variable NameVariable Name of the Bom Mapping Rule
Nested Schema : Action Type
Type:
objectTitle:
Action TypeAction Type of The Rule
Show Source
-
displayValue:
string
Title:
Display ValueTranslated display name of the type for which fixed list of values can be defined. -
id:
integer
Title:
IdPrimary Key of the fixed list of value resource. -
lookupCode:
string
Title:
Lookup CodeLanguage independent code of the fixed list of value.
Nested Schema : Condition Type
Type:
objectTitle:
Condition TypeCondition Type of Rule
Show Source
-
displayValue:
string
Title:
Display ValueTranslated display name of the type for which fixed list of values can be defined. -
id:
integer
Title:
IdPrimary Key of the fixed list of value resource. -
lookupCode:
string
Title:
Lookup CodeLanguage independent code of the fixed list of value.
Nested Schema : Detail Type
Type:
objectTitle:
Detail TypeDetail Type of Rule
Show Source
-
displayValue:
string
Title:
Display ValueTranslated display name of the type for which fixed list of values can be defined. -
id:
integer
Title:
IdPrimary Key of the fixed list of value resource. -
lookupCode:
string
Title:
Lookup CodeLanguage independent code of the fixed list of value.
Nested Schema : Reference Type
Type:
objectTitle:
Reference TypeType of the Reference
Show Source
-
displayValue:
string
Title:
Display ValueTranslated display name of the type for which fixed list of values can be defined. -
id:
integer
Title:
IdPrimary Key of the fixed list of value resource. -
lookupCode:
string
Title:
Lookup CodeLanguage independent code of the fixed list of value.
Nested Schema : Rule Type
Type:
objectTitle:
Rule TypeType of the Rule
Show Source
-
displayValue:
string
Title:
Display ValueTranslated display name of the type for which fixed list of values can be defined. -
id:
integer
Title:
IdPrimary Key of the fixed list of value resource. -
lookupCode:
string
Title:
Lookup CodeLanguage independent code of the fixed list of value.
Nested Schema : Rule Status
Type:
objectTitle:
Rule StatusStatus of Rule
Show Source
-
displayValue:
string
Title:
Display ValueTranslated display name of the type for which fixed list of values can be defined. -
id:
integer
Title:
IdPrimary Key of the fixed list of value resource. -
lookupCode:
string
Title:
Lookup CodeLanguage independent code of the fixed list of value.
Response
Supported Media Types
- application/json
Default Response
Root Schema : Bom Mapping Rule
Type:
objectTitle:
Show Source
Bom Mapping Rule-
actionType:
object Action Type
Title:
Action TypeAction Type of The Rule -
bomVariableName:
string
Title:
BOM Variable NameVariable Name of the target BOM -
conditionExpression:
string
Title:
Condition ExpressionCondition Expression of Rule -
conditionType:
object Condition Type
Title:
Condition TypeCondition Type of Rule -
dateAdded:
string
Title:
Date AddedSystem field indicating the date on which the Resource was created. -
dateModified:
string
Title:
Date ModifiedSystem field indicating the date on which the Resource was last modified. -
description:
string
Title:
DescriptionDescription of the Bom Mapping Rule -
detailType:
object Detail Type
Title:
Detail TypeDetail Type of Rule -
endDate:
string
Title:
End DateEnd Date -
id:
integer
Title:
IdPrimary Key Of The Resource -
label:
string
Title:
Bom Mapping Rule NameName of the Bom Mapping Rule -
orderNumber:
integer
Title:
Order NumberOrder Number of the Bom Mapping Rule -
processVariableName:
string
Title:
Process Variable NameVariable Name of the Process -
refType:
object Reference Type
Title:
Reference TypeType of the Reference -
ruleType:
object Rule Type
Title:
Rule TypeType of the Rule -
startDate:
string
Title:
Start DateStart Date -
status:
object Rule Status
Title:
Rule StatusStatus of Rule -
variableName:
string
Title:
Variable NameVariable Name of the Bom Mapping Rule
Nested Schema : Action Type
Type:
objectTitle:
Action TypeAction Type of The Rule
Show Source
-
displayValue:
string
Title:
Display ValueTranslated display name of the type for which fixed list of values can be defined. -
id:
integer
Title:
IdPrimary Key of the fixed list of value resource. -
lookupCode:
string
Title:
Lookup CodeLanguage independent code of the fixed list of value.
Nested Schema : Condition Type
Type:
objectTitle:
Condition TypeCondition Type of Rule
Show Source
-
displayValue:
string
Title:
Display ValueTranslated display name of the type for which fixed list of values can be defined. -
id:
integer
Title:
IdPrimary Key of the fixed list of value resource. -
lookupCode:
string
Title:
Lookup CodeLanguage independent code of the fixed list of value.
Nested Schema : Detail Type
Type:
objectTitle:
Detail TypeDetail Type of Rule
Show Source
-
displayValue:
string
Title:
Display ValueTranslated display name of the type for which fixed list of values can be defined. -
id:
integer
Title:
IdPrimary Key of the fixed list of value resource. -
lookupCode:
string
Title:
Lookup CodeLanguage independent code of the fixed list of value.
Nested Schema : Reference Type
Type:
objectTitle:
Reference TypeType of the Reference
Show Source
-
displayValue:
string
Title:
Display ValueTranslated display name of the type for which fixed list of values can be defined. -
id:
integer
Title:
IdPrimary Key of the fixed list of value resource. -
lookupCode:
string
Title:
Lookup CodeLanguage independent code of the fixed list of value.
Nested Schema : Rule Type
Type:
objectTitle:
Rule TypeType of the Rule
Show Source
-
displayValue:
string
Title:
Display ValueTranslated display name of the type for which fixed list of values can be defined. -
id:
integer
Title:
IdPrimary Key of the fixed list of value resource. -
lookupCode:
string
Title:
Lookup CodeLanguage independent code of the fixed list of value.
Nested Schema : Rule Status
Type:
objectTitle:
Rule StatusStatus of Rule
Show Source
-
displayValue:
string
Title:
Display ValueTranslated display name of the type for which fixed list of values can be defined. -
id:
integer
Title:
IdPrimary Key of the fixed list of value resource. -
lookupCode:
string
Title:
Lookup CodeLanguage independent code of the fixed list of value.
Examples
The following example shows how to retrieve create a BOM Mapping Rule by submitting a POST request to the REST resource using cURL. For more information about cURL, see Use cURL.
curl -X POST -H "Authorization: Bearer <token>" -H "Accept: application/json" https://sitename.oracle.com/rest/v19/allProductFamilySetups/_allProductFamilies/productFamilies/testbed/productLines/systemConfiguration/models/conditionalChildren/bomMappingRules
Request Body Sample
{
"label": "Bom Mapping Rule 149510",
"variableName": "bomMappingRule149510",
"description": "149510 Simple Bom MappingRule",
"startDate": "2022-04-04T19:05:29.000Z",
"endDate": "2092-12-12T01:01:01.000Z",
"status": {
"lookupCode": "1",
"displayValue": "Active"
},
"detailType": {
"lookupCode": "3",
"displayValue": "Table Based"
},
"conditionType": {
"lookupCode": "1",
"displayValue": "simple"
},
"conditions": {
"items": [{
"operator1": {
"lookupCode": "5",
"displayValue": ">"
},
"operator2": {
"lookupCode": "1",
"displayValue": "<"
},
"attributeId": 21635397,
"value1": "1.23",
"value2": "5.55",
"ruleConditionIndex": 1
}
]
},
"actionType": {
"lookupCode": "1",
"displayValue": "Simple"
},
"conditionExpression": "1",
"bomVariableName": "bug34136359",
"processVariableName": "test"
}
Response Body Sample
{
"orderNumber": 4,
"bomVariableName": "bug34136359",
"endDate": "2092-12-12T01:01:01.000Z",
- "refType": {
"lookupCode": "4",
"displayValue": "Model",
"id": 3022732073,
- "links": [ - {
"rel": "domain",
"href": "https://sitename.oracle.com/rest/v19/lookupValues?q=%7B%22lookupType%22%3A%7B%22%24eq%22%3A%22BM_CONFIG_RULE_REF_TYPE%22%7D%7D"
}, - {
"rel": "canonical",
"href": "https://sitename.oracle.com/rest/v19/lookupValues/3022732073"
}
]
},
"description": "149510 Simple Bom MappingRule",
"dateAdded": "2022-06-15T16:18:17.000Z",
- "detailType": {
"lookupCode": "3",
"displayValue": "Table Based",
"id": 3022732067,
- "links": [ - {
"rel": "domain",
"href": "https://sitename.oracle.com/rest/v19/lookupValues?q=%7B%22lookupType%22%3A%7B%22%24eq%22%3A%22BM_CONFIG_RULE_DETAIL_TYPE%22%7D%7D"
}, - {
"rel": "canonical",
"href": "https://sitename.oracle.com/rest/v19/lookupValues/3022732067"
}
]
},
- "ruleType": {
"lookupCode": "23",
"displayValue": "Bom Mapping Rule",
"id": 3022732081,
- "links": [ - {
"rel": "domain",
"href": "https://sitename.oracle.com/rest/v19/lookupValues?q=%7B%22lookupType%22%3A%7B%22%24eq%22%3A%22BM_CONFIG_RULE_TYPE%22%7D%7D"
}, - {
"rel": "canonical",
"href": "https://sitename.oracle.com/rest/v19/lookupValues/3022732081"
}
]
},
"processVariableName": "test",
"id": 3022780161,
"conditionExpression": "1",
"variableName": "bomMappingRule149510",
"dateModified": "2022-06-15T16:18:17.000Z",
"label": "Bom Mapping Rule 149510",
- "actionType": {
"lookupCode": "1",
"displayValue": "Standard",
"id": 3022732055,
- "links": [ - {
"rel": "domain",
"href": "https://sitename.oracle.com/rest/v19/lookupValues?q=%7B%22lookupType%22%3A%7B%22%24eq%22%3A%22BM_CONFIG_RULE_ACTION_TYPE%22%7D%7D"
}, - {
"rel": "canonical",
"href": "https://sitename.oracle.com/rest/v19/lookupValues/3022732055"
}
]
},
- "conditionType": {
"lookupCode": "1",
"displayValue": "Simple",
"id": 3022732060,
- "links": [ - {
"rel": "domain",
"href": "https://sitename.oracle.com/rest/v19/lookupValues?q=%7B%22lookupType%22%3A%7B%22%24eq%22%3A%22BM_CONFIG_RULE_CONDITION_TYPE%22%7D%7D"
}, - {
"rel": "canonical",
"href": "https://sitename.oracle.com/rest/v19/lookupValues/3022732060"
}
]
},
"startDate": "2022-04-04T19:05:29.000Z",
- "status": {
"lookupCode": "1",
"displayValue": "Active",
"id": 3022732076,
- "links": [ - {
"rel": "domain",
"href": "https://sitename.oracle.com/rest/v19/lookupValues?q=%7B%22lookupType%22%3A%7B%22%24eq%22%3A%22BM_CONFIG_RULE_STATUS%22%7D%7D"
}, - {
"rel": "canonical",
"href": "https://sitename.oracle.com/rest/v19/lookupValues/3022732076"
}
]
},
- "conditions": {
"hasMore": false,
- "links": [ - {
"rel": "self",
"href": "https://sitename.oracle.com/rest/v19/configBomMappingRuleSetups/3022780161/conditions"
}
],
- "items": [ - {
"value2": "5.55",
"value1": "1.23",
"dateModified": "2022-06-15T16:18:17.000Z",
"ruleConditionIndex": 1,
"dateAdded": "2022-06-15T16:18:17.000Z",
"attributeId": 21635397,
- "operator2": {
"lookupCode": "1",
"displayValue": "<",
"id": 3022732109,
- "links": [ - {
"rel": "domain",
"href": "https://sitename.oracle.com/rest/v19/lookupValues?q=%7B%22lookupType%22%3A%7B%22%24eq%22%3A%22BM_CONFIG_CONDITION_OPERATOR%22%7D%7D"
}, - {
"rel": "canonical",
"href": "https://sitename.oracle.com/rest/v19/lookupValues/3022732109"
}
]
},
- "operator1": {
"lookupCode": "5",
"displayValue": ">",
"id": 3022732113,
- "links": [ - {
"rel": "domain",
"href": "https://sitename.oracle.com/rest/v19/lookupValues?q=%7B%22lookupType%22%3A%7B%22%24eq%22%3A%22BM_CONFIG_CONDITION_OPERATOR%22%7D%7D"
}, - {
"rel": "canonical",
"href": "https://sitename.oracle.com/rest/v19/lookupValues/3022732113"
}
]
},
"id": 3022780163,
"ruleId": 3022780161,
- "links": [ - {
"rel": "self",
"href": "https://sitename.oracle.com/rest/v19/configBomMappingRuleSetups/3022780161/conditions/1"
}, - {
"rel": "parent",
"href": "https://sitename.oracle.com/rest/v19/configBomMappingRuleSetups/3022780161"
}
]
}
]
},
- "links": [ - {
"rel": "self",
"href": "https://sitename.oracle.com/rest/v19/configBomMappingRuleSetups/3022780161"
}
]
}