Get All BOM Mapping Rules
get
/rest/v19/allProductFamilySetups/{allProdFamsVarName}/productFamilies/{prodFamVarName}/productLines/{prodLineVarName}/models/{modelVarName}/bomMappingRules
Use this endpoint to retrieve a list of BOM Mapping Rules for the specified Model.
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
Query Parameters
-
expand: string
Allows expansion of relationships.
-
fields: string
Restrict which fields shall be returned. The value is a comma delimited string and each token is a field name.
-
limit: integer
The requested page size, which limits the number of elements the collection should max return.
-
offset: integer
The offset of the page. By default, offset is 0, which means first page will be returned.
-
orderby: string
Specifies a comma-separated list of pairs to order the response by.
-
q: string
Allows to specify one or more filtering criteria. By default, no filtering is applied.
-
totalResults: boolean
Specifies that the total count of records should be included in the response when doing pagination.
Response
Supported Media Types
- application/json
Default Response
Root Schema : configBomMappingRuleSetups-collection
Type:
Show Source
object-
count:
integer
The number of resource instances returned in the current range.
-
hasMore:
boolean
Returns true if more resources are available on the server than the subset returned in current page.
-
items:
array items
-
limit:
integer
The actual paging size used by the server.
-
offset:
integer
The offset used in the current page.
-
totalResults:
integer
Capture the total count of the resource instances, which not only includes the instances in the current range, but all instances on the server that satisfy the request.
Nested Schema : items
Type:
Show Source
array-
Array of:
object Bom Mapping Rule
Title:
Bom Mapping Rule
Nested 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 a list of BOM Mapping Rules for the specified Model by submitting a GET request to the REST resource using cURL. For more information about cURL, see Use cURL.
curl -X GET -H "Authorization: Bearer <token>" -H "Accept: application/json" https://sitename.oracle.com/rest/v19/allProductFamilySetups/_allProductFamilies/productFamilies/varioTablets/productLines/tablets/models/customTablet/bomMappingRules
Response Body Sample
{
"hasMore": false,
"links": [{
"rel": "self",
"href": "https://sitename.oracle.com/rest/v19/allProductFamilySetups/_allProductFamilies/productFamilies/varioTablets/productLines/tablets/models/customTablet/bomMappingRules"
}
],
"items": [{
"orderNumber": 1,
"bomVariableName": "varioTablet",
"endDate": null,
"refType": {
"lookupCode": "4",
"displayValue": "Model",
"id": 38731888,
"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/38731888"
}
]
},
"description": null,
"dateAdded": "2017-11-13T13:30:01.000Z",
"detailType": {
"lookupCode": "3",
"displayValue": "Table Based",
"id": 38731882,
"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/38731882"
}
]
},
"ruleType": {
"lookupCode": "23",
"displayValue": "Bom Mapping Rule",
"id": 38731896,
"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/38731896"
}
]
},
"processVariableName": "oraclecpqo",
"id": 36594469,
"conditionExpression": null,
"variableName": "defaultBOMMappingRule",
"dateModified": "2019-10-04T12:39:45.000Z",
"label": "Default BOM Mapping Rule",
"actionType": {
"lookupCode": "1",
"displayValue": "Standard",
"id": 38731870,
"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/38731870"
}
]
},
"conditionType": {
"lookupCode": "3",
"displayValue": "Always True",
"id": 38731877,
"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/38731877"
}
]
},
"startDate": null,
"status": {
"lookupCode": "1",
"displayValue": "Active",
"id": 38731891,
"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/38731891"
}
]
},
"links": [{
"rel": "self",
"href": "https://sitename.oracle.com/rest/v19/allProductFamilySetups/_allProductFamilies/productFamilies/varioTablets/productLines/tablets/models/customTablet/bomMappingRules/36594469"
}, {
"kind": "",
"rel": "child",
"name": "conditions",
"href": "https://sitename.oracle.com/rest/v19/allProductFamilySetups/_allProductFamilies/productFamilies/varioTablets/productLines/tablets/models/customTablet/bomMappingRules/36594469/conditions"
}, {
"rel": "parent",
"href": "https://sitename.oracle.com/rest/v19/allProductFamilySetups/_allProductFamilies/productFamilies/varioTablets/productLines/tablets/models/customTablet"
}
]
}
]
}