English
Update Product Combination Object Information
About 447 wordsAbout 1 min
2026-10-23
Description
Update Product Combination Object Information.
Request Specification
Method: POST + application/json
Endpoint: https://${Cloud Domain}/cgi/crm/v2/data/update?thirdTraceId=${Random String}
Headers: Refer to Common Parameters
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| triggerApprovalFlow | Boolean | No | Whether to trigger the approval flow (defaults to true if not provided, meaning triggered). This parameter applies to all objects |
| triggerWorkFlow | Boolean | No | Whether to trigger the workflow (defaults to true if not provided, meaning triggered). This parameter applies to all objects |
| data | Map | Yes | Data map |
| object_data | Map | Yes | Object data (corresponds to the fields of the object description in CRM admin) |
| dataObjectApiName | String | Yes | Object api_name, fixed value: BomCoreObj |
| _id | String | Yes | ID of the data to update |
| details | Map | No | Detail object data (key is the apiName, value is a data Map) |
| igonreMediaIdConvert | Boolean | No | File path type: pass true when the path is npath (starting with N_); otherwise false; defaults to true if not provided |
| optionInfo | Map | No | Validation options |
| skipFuncValidate | Boolean | No | Skip pre-function validation |
| useValidationRule | Boolean | No | Whether to trigger validation rules |
| isDuplicateSearch | Boolean | No | Whether to trigger duplicate check |
Request Example
{
"triggerApprovalFlow": true,
"triggerWorkFlow": true,
"data": {
"object_data": {
"dataObjectApiName": "BomCoreObj",
"_id": "hello"
},
"details": {
"api_name": [
{
"_id": "88888888",
"name": "modify"
}
]
},
"igonreMediaIdConvert": false,
"optionInfo": {
"skipFuncValidate": true,
"useValidationRule": true,
"isDuplicateSearch": true
}
}
}Response Parameters
| Parameter | Type | Description |
|---|---|---|
| dataId | String | Data ID |
| traceId | string | Unique request ID |
| errorDescription | string | Error description |
| errorMessage | string | Error message |
| errorCode | Int | Error Codes |
Response Example
{
"dataId": "68faxxxxxx",
"traceId": "E-O.827xxxxxx",
"errorDescription": "success",
"errorMessage": "OK",
"errorCode": 0
}Notes
- Do not use the
messagefield in the response for logical judgments, aserrorMessagemay change.
Special Notes
The following fields must be passed in the request
| Field name | Field type | Field description | Remarks |
|---|---|---|---|
| children | List<String> | Set of child nodes | |
| action_type | String | Indicator for adding, updating or deleting a node | This parameter is required by the /API/v1/rest/object/BomCoreObj/action/Edit edit interface; valid values: create, update, delete |
Example of passing parameters through the details parameter:
"details":{
"BOMObj": [
{
"record_type": "default__c",
"object_describe_api_name": "BOMObj",
"price_editable": true,
"price_mode": "1",
"lock_status": "0",
"selected_by_default": false,
"increment": "1",
"adjust_price": "1",
"is_required": false,
"amount": "1",
"is_package": false,
"enabled_status": true,
"amount_editable": false,
"product_id": "65eff3xxxxxxxxxxxxxxxd08d",
"action_type": "update"
},
{
"object_describe_api_name": "ProductGroupObj",
"name": "Group 1",
"order_field": "2",
"group_options_control": false,
"min_prod_count": null,
"max_prod_count": null,
"is_required": null,
"children": [
{
"record_type": "default__c",
"object_describe_api_name": "BOMObj",
"price_editable": true,
"price_mode": "2",
"selected_by_default": false,
"increment": "1",
"adjust_price": null,
"is_required": false,
"amount": "1",
"enabled_status": true,
"amount_editable": false,
"product_id": "65eff3xxxxxxxxxxxxxxd191",
"action_type": "create"
}
],
"record_type": "default__c",
"action_type": "create"
}
]
}