Change ERP Object Owner
# Not Recommended to Continue Using Deprecated APIs!!!
# Description
Change the owner of an ERP object.
# Request Specification
HTTP Method: POST + application/json
Request Path: https://${Cloud Domain}/cgi/crm/erp/data/changeOwner?thirdTraceId=${Random String}
# Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| corpAccessToken | String | Yes | Enterprise app access token |
| corpId | String | Yes | Enterprise ID |
| currentOpenUserId | String | Yes | Current operator's OpenUserID |
| data | Map | Yes | Data map (single record change only) |
| data.dataObjectApiName | String | Yes | Object's api_name |
| data.Data | List | Yes | Owner change information |
# Request Example
{
"corpAccessToken": "CORP_ACCESS_TOKEN",
"corpId": "CORP_ID",
"currentOpenUserId": "FSUID_XXXXXX",
"data": {
"dataObjectApiName": "ErpStockObj",
"Data": [
{
"objectDataId": "5a9914fcf125ae0a1axxxxxx",
"ownerId": [
"FSUID_7B8A3925E40FA68630C0D7E9C3XXXXXX"
]
}
]
}
}
# Response Parameters
| Parameter | Required | Description |
|---|---|---|
| errorCode | Yes | Response code |
| errorMessage | Yes | Description of response code |
# Response Example
{
"errorCode":0,
"errorMessage":"success"
}
# Notes
- Do not use the message field in the response for logical judgments as errorMessage may change;