Add Multiple Models to a Transaction
post
/rest/v19/config/actions/_bulkAddToTxn
This action is used for configuring a set of model with appropriate inputs such as configurable attributes or flow inputs for the execution of configuration rules and generates the configuration data. This data is used to create a set of lines under given transaction
Request
Supported Media Types
- application/json
Root Schema : configActions_bulkAddToTxnRequest
Type:
Show Source
object-
bsId:
integer
Title:
Buyside IdentifierBuyside Identifier -
documentId:
integer
Title:
Document IdThe unique Identifier of the Main document or Sub Document -
headlessMode:
boolean
Title:
Headless ModeThis property determines the API execution behavior. When false, API execution mimics the legacy UI behavior. When true, executes in UI agnostic mode. The default value is false. -
items:
array items
Nested Schema : items
Type:
Show Source
object-
configData:
object Configuration Data
Title:
Configuration DataTop-level object in the payload containing the configuration data. -
fromPunchin:
boolean
Title:
From PunchinIt indicates that configure is requested from punchin. -
instanceId:
string
Title:
Error LabelOptional identifier for this entry. -
model:
string
Title:
ModelModel variable name. -
modelPunchin:
object modelPunchin
-
productFamily:
string
Title:
Product FamilyProduct family variable name. -
productLine:
string
Title:
Product LineProduct line variable name.
Nested Schema : Configuration Data
Type:
objectTitle:
Configuration DataTop-level object in the payload containing the configuration data.
Show Source
Nested Schema : modelPunchin
Type:
Show Source
object-
flowInputs:
object Flow Inputs
Title:
Flow InputsAn object that consists of one or more configuration attributes which act as the trigger conditions to determine the appropriate configuration flow that needs to be rendered. -
parameters:
object Parameters
Title:
ParametersAn object that consists of one or more configuration attributes with appropriate values which then will be applied by default on the model configuration UI when punched-in. -
searchResults:
object Search Results
Title:
Search ResultsAn object that consists of one or more configuration attributes with appropriate values which then will enable selector recommendations for model configuration.
Nested Schema : Flow Inputs
Type:
objectTitle:
Flow InputsAn object that consists of one or more configuration attributes which act as the trigger conditions to determine the appropriate configuration flow that needs to be rendered.
Nested Schema : Parameters
Type:
objectTitle:
ParametersAn object that consists of one or more configuration attributes with appropriate values which then will be applied by default on the model configuration UI when punched-in.
Nested Schema : Search Results
Type:
objectTitle:
Search ResultsAn object that consists of one or more configuration attributes with appropriate values which then will enable selector recommendations for model configuration.
Response
Supported Media Types
- application/json
Default Response
Root Schema : configActions_bulkAddToTxnResponse
Type:
Show Source
object-
bsId:
integer
Title:
Buyside IdentifierBuyside Identifier -
destinationUrl:
string
Title:
Destination URLDestination url. -
processId:
integer
Title:
Process IdProcess identifier.
Examples
The following example shows how to upload multiple models to a transaction by submitting a POST request to the REST resource using cURL.
curl -X POST -H "Authorization: Bearer <token>" -H "Accept: application/json" https://sitename.oracle.comconfig/actions/_bulkAddToTxn
Request Body Sample
{
"bsId": 41370275,
"documentId": 37056643,
"items": [{
"productFamily": "vision",
"productLine": "servers",
"model": "serverSolutions",
"configData": {
"packagedSolutions": {
"value": "Sentinel",
"displayValue": "Standard"
}
}
}, {
"productFamily": "vision",
"productLine": "servers",
"model": "ultraPowerSolutionPackage",
"configData": {
"serverCounter": 1,
"powerSupply": {
"value": "600W PSU",
"displayValue": "600W PSU"
},
"enclosure": "Vision Blade 6000 Chassis",
"howMuchDataDoYouCurrentlyManageAndStore": {
"value": "1 TB - 5 TB",
"displayValue": "1 TB - 5 TB"
},
"ram": {
"value": "4 GB RAM",
"displayValue": "4 GB RAM"
},
"ramConfiguration": {
"value": "2 Sticks",
"displayValue": "2 Sticks"
},
"slimFloppyDrive": false,
"serverPerformance": {
"value": "Entry Level",
"displayValue": "Entry Level"
},
"supportLevel": {
"value": "Vision Gold",
"displayValue": "Vision Gold"
},
"oSLicenses": 1,
"overrideLowQuantity": false,
"howManyEmployeesDoYouHaveNow": {
"value": "26 - 100",
"displayValue": "26 - 100"
},
"applicationSoftwareCounter": 4,
"blades_quantity": 1,
"numberOfProcessors": {
"value": 2,
"displayValue": "2"
}
}
}
]
}
Response Body Sample
{
"destinationUrl": "https://sitename.oracle.com/commerce/buyside/document.jsp?id=41370275&version_id=36733420&bm_cm_process_id=36733329&document_id=37056643&process=oraclecpqo&formaction=openTransaction&document_number=1",
"bsId": 41370275,
"processId": 36733329,
"processVarName": "oraclecpqo",
"documentId": 37056643
}