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
Path Parameters
Body ()
Root Schema : Bom Mapping Rule
Type: object
Title: Bom Mapping Rule
Show Source
Nested Schema : Action Type
Type: object
Title: Action Type
Action Type of The Rule
Show Source
  • Title: Display Value
    Translated display name of the type for which fixed list of values can be defined.
  • Title: Id
    Primary Key of the fixed list of value resource.
  • 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
  • Title: Display Value
    Translated display name of the type for which fixed list of values can be defined.
  • Title: Id
    Primary Key of the fixed list of value resource.
  • 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
  • Title: Display Value
    Translated display name of the type for which fixed list of values can be defined.
  • Title: Id
    Primary Key of the fixed list of value resource.
  • 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
  • Title: Display Value
    Translated display name of the type for which fixed list of values can be defined.
  • Title: Id
    Primary Key of the fixed list of value resource.
  • 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
  • Title: Display Value
    Translated display name of the type for which fixed list of values can be defined.
  • Title: Id
    Primary Key of the fixed list of value resource.
  • 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
  • Title: Display Value
    Translated display name of the type for which fixed list of values can be defined.
  • Title: Id
    Primary Key of the fixed list of value resource.
  • Title: Lookup Code
    Language independent code of the fixed list of value.
Back to Top

Response

Supported Media Types

Default Response

Body ()
Root Schema : Bom Mapping Rule
Type: object
Title: Bom Mapping Rule
Show Source
Nested Schema : Action Type
Type: object
Title: Action Type
Action Type of The Rule
Show Source
  • Title: Display Value
    Translated display name of the type for which fixed list of values can be defined.
  • Title: Id
    Primary Key of the fixed list of value resource.
  • 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
  • Title: Display Value
    Translated display name of the type for which fixed list of values can be defined.
  • Title: Id
    Primary Key of the fixed list of value resource.
  • 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
  • Title: Display Value
    Translated display name of the type for which fixed list of values can be defined.
  • Title: Id
    Primary Key of the fixed list of value resource.
  • 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
  • Title: Display Value
    Translated display name of the type for which fixed list of values can be defined.
  • Title: Id
    Primary Key of the fixed list of value resource.
  • 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
  • Title: Display Value
    Translated display name of the type for which fixed list of values can be defined.
  • Title: Id
    Primary Key of the fixed list of value resource.
  • 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
  • Title: Display Value
    Translated display name of the type for which fixed list of values can be defined.
  • Title: Id
    Primary Key of the fixed list of value resource.
  • Title: Lookup Code
    Language independent code of the fixed list of value.
Back to Top

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"
    }
  ]
}
Back to Top