English
Change Custom Object Owner
About 199 wordsLess than 1 minute
2026-01-29
Description
Change the owner of a custom object.
Request Specification
HTTP Method: POST + application/json
Request Path: https://${Cloud Domain}/cgi/crm/custom/v2/data/changeOwner?thirdTraceId=${Random String}
Request Headers: Refer to Common Parameters
This API is only applicable to custom objects (objects whose ApiName ends with __c)
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| data | Map | Yes | Data map |
| idList | List | Yes | List of data IDs |
| dataObjectApiName | String | Yes | API name of the object |
Request Example
{
"data": {
"idList": "",
"dataObjectApiName": ""
}
}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
messagefield in the response for logical judgments, aserrorMessagemay change.
Special Notes
Differences from V1 Custom Object Creation API:
V1 API request parameters:
{
"corpAccessToken": "CORP_ACCESS_TOKEN",
"corpId": "CORP_ID",
"currentOpenUserId": "FSUID_XXXXXX",
"data": {
"dataObjectApiName": "object_Nyeoj__c",
"dataList": [{
"objectDataId": "5d27fe3642639b00017160e8",
"ownerId": [
"FSUID_0871DA62082216ECE103C16683E2FCDF"
]
},
{
"objectDataId": "5d27f9466e048f00013ae503",
"ownerId": [
"FSUID_0871DA62082216ECE103C16683E2FCDF"
]
}
]
}
}V2 API request parameters:
{
"data": {
"dataObjectApiName": "object_Nyeoj__c",
"Data": [{
"objectDataId": "5a9914fcf125ae0a1axxxxxx",
"ownerId": [
"FSUID_7B8A3925E40FA68630C0D7E9C3XXXXXX"
]
}]
}
}Note: The keyword has changed from dataList to Data.
