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 of All Product Families '_allProductFamilies'
-
modelVarName(required): string
Variable Name of the Model.
-
prodFamVarName(required): string
Variable Name of the Product Family.
-
prodLineVarName(required): string
Variable Name of the Product Line
Root Schema : Bom Mapping Rule
Type:
object
Title:
Show Source
Bom Mapping Rule
-
actionType:
object Action Type
Title:
Action Type
Action Type of The Rule -
bomVariableName:
string
Title:
BOM Variable Name
Variable Name of the target BOM -
conditionExpression:
string
Title:
Condition Expression
Condition Expression of Rule -
conditionType:
object Condition Type
Title:
Condition Type
Condition Type of Rule -
dateAdded:
string
Title:
Date Added
System field indicating the date on which the Resource was created. -
dateModified:
string
Title:
Date Modified
System field indicating the date on which the Resource was last modified. -
description:
string
Title:
Description
Description of the Bom Mapping Rule -
detailType:
object Detail Type
Title:
Detail Type
Detail Type of Rule -
endDate:
string
Title:
End Date
End Date -
id:
integer
Title:
Id
Primary Key Of The Resource -
label:
string
Title:
Bom Mapping Rule Name
Name of the Bom Mapping Rule -
orderNumber:
integer
Title:
Order Number
Order Number of the Bom Mapping Rule -
processVariableName:
string
Title:
Process Variable Name
Variable Name of the Process -
refType:
object Reference Type
Title:
Reference Type
Type of the Reference -
ruleType:
object Rule Type
Title:
Rule Type
Type of the Rule -
startDate:
string
Title:
Start Date
Start Date -
status:
object Rule Status
Title:
Rule Status
Status of Rule -
variableName:
string
Title:
Variable Name
Variable Name of the Bom Mapping Rule
Nested Schema : Action Type
Type:
object
Title:
Action Type
Action Type of The Rule
Show Source
-
displayValue:
string
Title:
Display Value
Translated display name of the type for which fixed list of values can be defined. -
id:
integer
Title:
Id
Primary Key of the fixed list of value resource. -
lookupCode:
string
Title:
Lookup Code
Language independent code of the fixed list of value.
Nested Schema : Condition Type
Type:
object
Title:
Condition Type
Condition Type of Rule
Show Source
-
displayValue:
string
Title:
Display Value
Translated display name of the type for which fixed list of values can be defined. -
id:
integer
Title:
Id
Primary Key of the fixed list of value resource. -
lookupCode:
string
Title:
Lookup Code
Language independent code of the fixed list of value.
Nested Schema : Detail Type
Type:
object
Title:
Detail Type
Detail Type of Rule
Show Source
-
displayValue:
string
Title:
Display Value
Translated display name of the type for which fixed list of values can be defined. -
id:
integer
Title:
Id
Primary Key of the fixed list of value resource. -
lookupCode:
string
Title:
Lookup Code
Language independent code of the fixed list of value.
Nested Schema : Reference Type
Type:
object
Title:
Reference Type
Type of the Reference
Show Source
-
displayValue:
string
Title:
Display Value
Translated display name of the type for which fixed list of values can be defined. -
id:
integer
Title:
Id
Primary Key of the fixed list of value resource. -
lookupCode:
string
Title:
Lookup Code
Language independent code of the fixed list of value.
Nested Schema : Rule Type
Type:
object
Title:
Rule Type
Type of the Rule
Show Source
-
displayValue:
string
Title:
Display Value
Translated display name of the type for which fixed list of values can be defined. -
id:
integer
Title:
Id
Primary Key of the fixed list of value resource. -
lookupCode:
string
Title:
Lookup Code
Language independent code of the fixed list of value.
Nested Schema : Rule Status
Type:
object
Title:
Rule Status
Status of Rule
Show Source
-
displayValue:
string
Title:
Display Value
Translated display name of the type for which fixed list of values can be defined. -
id:
integer
Title:
Id
Primary Key of the fixed list of value resource. -
lookupCode:
string
Title:
Lookup Code
Language independent code of the fixed list of value.
Response
Supported Media Types
- application/json
Default Response
Root Schema : Bom Mapping Rule
Type:
object
Title:
Show Source
Bom Mapping Rule
-
actionType:
object Action Type
Title:
Action Type
Action Type of The Rule -
bomVariableName:
string
Title:
BOM Variable Name
Variable Name of the target BOM -
conditionExpression:
string
Title:
Condition Expression
Condition Expression of Rule -
conditionType:
object Condition Type
Title:
Condition Type
Condition Type of Rule -
dateAdded:
string
Title:
Date Added
System field indicating the date on which the Resource was created. -
dateModified:
string
Title:
Date Modified
System field indicating the date on which the Resource was last modified. -
description:
string
Title:
Description
Description of the Bom Mapping Rule -
detailType:
object Detail Type
Title:
Detail Type
Detail Type of Rule -
endDate:
string
Title:
End Date
End Date -
id:
integer
Title:
Id
Primary Key Of The Resource -
label:
string
Title:
Bom Mapping Rule Name
Name of the Bom Mapping Rule -
orderNumber:
integer
Title:
Order Number
Order Number of the Bom Mapping Rule -
processVariableName:
string
Title:
Process Variable Name
Variable Name of the Process -
refType:
object Reference Type
Title:
Reference Type
Type of the Reference -
ruleType:
object Rule Type
Title:
Rule Type
Type of the Rule -
startDate:
string
Title:
Start Date
Start Date -
status:
object Rule Status
Title:
Rule Status
Status of Rule -
variableName:
string
Title:
Variable Name
Variable Name of the Bom Mapping Rule
Nested Schema : Action Type
Type:
object
Title:
Action Type
Action Type of The Rule
Show Source
-
displayValue:
string
Title:
Display Value
Translated display name of the type for which fixed list of values can be defined. -
id:
integer
Title:
Id
Primary Key of the fixed list of value resource. -
lookupCode:
string
Title:
Lookup Code
Language independent code of the fixed list of value.
Nested Schema : Condition Type
Type:
object
Title:
Condition Type
Condition Type of Rule
Show Source
-
displayValue:
string
Title:
Display Value
Translated display name of the type for which fixed list of values can be defined. -
id:
integer
Title:
Id
Primary Key of the fixed list of value resource. -
lookupCode:
string
Title:
Lookup Code
Language independent code of the fixed list of value.
Nested Schema : Detail Type
Type:
object
Title:
Detail Type
Detail Type of Rule
Show Source
-
displayValue:
string
Title:
Display Value
Translated display name of the type for which fixed list of values can be defined. -
id:
integer
Title:
Id
Primary Key of the fixed list of value resource. -
lookupCode:
string
Title:
Lookup Code
Language independent code of the fixed list of value.
Nested Schema : Reference Type
Type:
object
Title:
Reference Type
Type of the Reference
Show Source
-
displayValue:
string
Title:
Display Value
Translated display name of the type for which fixed list of values can be defined. -
id:
integer
Title:
Id
Primary Key of the fixed list of value resource. -
lookupCode:
string
Title:
Lookup Code
Language independent code of the fixed list of value.
Nested Schema : Rule Type
Type:
object
Title:
Rule Type
Type of the Rule
Show Source
-
displayValue:
string
Title:
Display Value
Translated display name of the type for which fixed list of values can be defined. -
id:
integer
Title:
Id
Primary Key of the fixed list of value resource. -
lookupCode:
string
Title:
Lookup Code
Language independent code of the fixed list of value.
Nested Schema : Rule Status
Type:
object
Title:
Rule Status
Status of Rule
Show Source
-
displayValue:
string
Title:
Display Value
Translated display name of the type for which fixed list of values can be defined. -
id:
integer
Title:
Id
Primary Key of the fixed list of value resource. -
lookupCode:
string
Title:
Lookup Code
Language 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" } ] }