Update a Commerce Process Document
patch
/rest/v19/commerceProcessSetups/{processVarName}/documents/{docVarName}
Use this endpoint to update the specified Commerce Process document.
Request
Supported Media Types
- application/json
Path Parameters
Root Schema : DocumentRequestModel
Type:
Show Source
object-
coverageEnabled:
boolean()
Title:
Coverage EnabledIndicates whether Coverage feature is enabled -
coverageMapping:
Coverage Mapping
Title:
Coverage MappingProperty object for storing coverage related mappings -
cvgStdDefaultOverride:
boolean()
Title:
Coverage Standard Default OverrideSpecifies whether the standard coverage options are overridden -
description:
string()
Title:
DescriptionDescription of the Document -
id:
integer()
Title:
IdId of the document -
label:
string()
Title:
LabelLabel of the Document -
modifyRuleExecPolicy:
boolean()
Title:
Modify Rule Exec PolicyIndicates whether Modify Rule Exec Policy is enabled -
opportunityIdMapping:
string()
Title:
Opportunity Id MappingField that store the field name of mapped opportunity Id -
postAdvancedDefault:
Post Advanced Modify
Title:
Post Advanced ModifyProperty object for Post Advanced Modify -
postAutoUpdate:
Pre Auto Update
Title:
Pre Auto UpdateProperty object for Pre Auto Update -
preAdvancedDefault:
Pre Advanced Modify
Title:
Pre Advanced ModifyProperty object for Pre Advanced Modify -
preAutoUpdate:
Pre Auto Update
Title:
Pre Auto UpdateProperty object for Pre Auto Update -
subDocId:
integer()
Title:
Sub Document IdDocument Id of the linked Sub Document -
type:
integer()
Title:
TypeType of the Document (Sub or Main) -
variableName:
string()
Title:
Variable NameVariable Name of the Document
Nested Schema : Coverage Mapping
Title:
Coverage MappingProperty object for storing coverage related mappings
Match All
Property object for storing coverage related mappings
Show Source
Nested Schema : Post Advanced Modify
Title:
Post Advanced ModifyProperty object for Post Advanced Modify
Match All
Property object for Post Advanced Modify
Show Source
Nested Schema : Pre Auto Update
Title:
Pre Auto UpdateProperty object for Pre Auto Update
Match All
Property object for Pre Auto Update
Show Source
Nested Schema : Pre Advanced Modify
Title:
Pre Advanced ModifyProperty object for Pre Advanced Modify
Match All
Property object for Pre Advanced Modify
Show Source
Nested Schema : Pre Auto Update
Title:
Pre Auto UpdateProperty object for Pre Auto Update
Match All
Property object for Pre Auto Update
Show Source
Nested Schema : CoverageMappingResourceModel
Type:
Show Source
object-
coverageLineNo:
integer()
Title:
Coverage Line NumberAttribute Id of field that stores Coverage Product's Line Number -
coverageOrderNo:
integer()
Title:
Coverage Order NumberAttribute Id of field that stores Coverage Product's Order Number -
customerID:
integer()
Title:
Customer IDAttribute Id of field that stores Customer ID -
orderNo:
integer()
Title:
Order NumberAttribute Id of field that stores Covered Product's Order Number -
quantity:
integer()
Title:
QuantityAttribute Id of field that stores Quantity -
unitOfMeasure:
integer()
Title:
Unit Of MeasureAttribute Id of field that stores Unit Of Measure
Nested Schema : DocumentOverrideStdPropsModel
Type:
Show Source
object-
functionDefined:
boolean()
Title:
Function DefinedSpecifies whether Function is Defined -
functionValid:
boolean
-
overrideEnabled:
boolean()
Title:
Override EnabledSpecifies whether the standard option is overridden
Response
200 Response
Success
Examples
The following example shows how to update the specified Commerce Process document by submitting a PATCH request to the REST resource using cURL. For more information about cURL, see Use cURL.
curl -X PATCH -H "Authorization: Bearer <token>" -H "Accept: application/json" https://sitename.oracle.com/rest/v19/commerceProcessSetups/oraclecpqo/documents/transaction
Request Body Samples
Standard Process Sample
{
"label": "Transaction",
"variableName": "transaction",
"subDocId": 62376263,
"description": "Main (Header Level) Commerce Document - serves as Quote/ Order depending on step in process flow",
"opportunityIdMapping": "transaction.opportunityNumber",
"preAutoUpdate": {
"overrideEnabled": false,
"functionDefined": false
}
"postAutoUpdate": {
"overrideEnabled": false,
"functionDefined": true
}
"preAdvancedDefault": {
"overrideEnabled": false,
"functionDefined": true
}
}
Non-Standard Process Sample
{
"label": "Main",
"variableName": "main",
"subDocId": 62376263,
"description": "test126",
"opportunityIdMapping": "",
"preAutoUpdate": {
"functionDefined": false
},
"postAutoUpdate": {
"functionDefined": true
},
"preAdvancedDefault": {
"functionDefined": false
}
}