Update ERP Object
# Not recommended to continue using offline interfaces!!!
# Description
Update an ERP object.
# Request Specification
HTTP Method: POST + application/json
Request Path: https://${cloud domain}/cgi/crm/erp/data?thirdTraceId=${Random String}
# Request Parameters
| Parameter | Type | Required | Remarks |
|---|---|---|---|
| corpAccessToken | String | Yes | Enterprise application access token for company validation |
| corpId | String | Yes | Enterprise ID |
| currentOpenUserId | String | Yes | Current operator's OpenUserID |
| triggerWorkFlow | boolean | No | Whether to trigger workflow (defaults to true if not provided). Applies to all objects. |
| data | Map | Yes | Data map |
| data.object_data | Map | Yes | Object data map (corresponds to fields in object description) |
| data.object_data.dataObjectApiName | String | Yes | API name of the object |
| data.object_data._id | String | Yes | ID of the data to be updated |
# Request Example
{
"corpAccessToken": "CADD6BABEB80C950374C500007EFBDDB",
"corpId": "FSCID_32F560259BC489F57078E5F8E8831B1A",
"currentOpenUserId": "FSUID_43B6C5E99623942DF0BF6E0A0B325AD1",
"data": {
"object_data": {
"dataObjectApiName": "ErpWarehouseObj",
"is_enable": "1",
"is_deleted": false,
"owner_department": "Sales Department",
"owner": [
"FSUID_43B6C5E99623942DF0BF6E0A0B325AD1"
],
"address": "Angel Street",
"lock_status": "0",
"last_modified_time": 1534940627756,
"create_time": 1534940627756,
"life_status": "normal",
"last_modified_by": [
"FSUID_43B6C5E99623942DF0BF6E0A0B325AD1"
],
"created_by": [
"FSUID_43B6C5E99623942DF0BF6E0A0B325AD1"
],
"record_type": "default__c",
"relevant_team": [
{
"teamMemberEmployee": [
"FSUID_43B6C5E99623942DF0BF6E0A0B325AD1"
],
"teamMemberRole": "1",
"teamMemberPermissionType": "2"
}
],
"name": "Nanshan Warehouse 21-1",
"_id":"5f310fa3d9752000014e8769"
}
}
}
# Response Parameters
| Parameter | Required | Description |
|---|---|---|
| errorCode | Yes | Response code |
| errorMessage | Yes | Text description of the response code |
| data | Yes | Interface response data |
# Response Example
{
"errorCode":0,
"errorMessage":"success",
"data": {}
}
# Notes
- Do not use the message field in the response for logical judgment, as errorMessage may change;