Update Preset Object
# Not recommended to continue using offline APIs!!!
# Description
Update preset object
# Request Specification
Method: POST + application/json
Endpoint: https://${Cloud Domain}/cgi/crm/v2/data/update?thirdTraceId=${Random String}
# Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| corpAccessToken | String | Yes | corpAccessToken (returned via Get Token API (opens new window)) |
| corpId | String | Yes | corpId (returned via Get Token API (opens new window)) |
| currentOpenUserId | String | Yes | currentOpenUserId (returned via Query Employee by Phone API (opens new window)) |
| triggerApprovalFlow | Boolean | No | Whether to trigger approval flow (defaults to true when not provided, indicating triggering). This parameter applies to all objects. |
| triggerWorkFlow | Boolean | No | Whether to trigger workflow (defaults to true when not provided, indicating triggering). This parameter applies to all objects. |
| data | Map | Yes | Data Map |
| object_data | Map | Yes | Object data (corresponding to fields in CRM backend object description) |
| dataObjectApiName | String | Yes | Object API name, fixed value: CampaignMembersObj |
| _id | String | Yes | ID of the data to be updated |
| details | Map | No | Sub-object data (key as apiName, value as data Map) |
| igonreMediaIdConvert | Boolean | No | File path type: true for npath (starting with N_), false otherwise. Defaults to true when not provided. |
| optionInfo | Map | No | Validation options |
| skipFuncValidate | Boolean | No | Skip function pre-validation |
| useValidationRule | Boolean | No | Whether to trigger validation rules |
| isDuplicateSearch | Boolean | No | Whether to trigger duplicate check |
# Request Example
{
"corpAccessToken": "{corpAccessToken}",
"triggerWorkFlow": true,
"currentOpenUserId": "{currentOpenUserId}",
"corpId": "{corpId}",
"data": {
"object_data": {
"_id": "hello",
"dataObjectApiName": "CampaignMembersObj"
},
"optionInfo": {
"skipFuncValidate": true,
"isDuplicateSearch": true,
"useValidationRule": true
},
"details": {
"api_name": [
{
"_id": "88888888",
"name": "modify"
}
]
},
"igonreMediaIdConvert": false
},
"triggerApprovalFlow": true
}
# Response Parameters
| Parameter | Type | Description |
|---|---|---|
| traceId | string | Unique request ID |
| errorDescription | string | Error description |
| errorMessage | string | Error message |
| errorCode | Int | Error codes |
# Response Example
{
"traceId": "E-O.827xxxxxx",
"errorDescription": "success",
"errorMessage": "OK",
"errorCode": 0
}
# Notes
- Do not use the message field in the response for logical judgments, as errorMessage may change;