Restore Preset Objects
# Not Recommended to Continue Using Deprecated APIs!!!
# Description
Restore preset objects.
# Request Specification
HTTP Method: POST + application/json
Request Path: https://${cloud domain}/cgi/crm/v2/data/recover?thirdTraceId=${Random String}
# Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| corpAccessToken | String | Yes | corpAccessToken (returned by the Get Token API (opens new window)) |
| corpId | String | Yes | corpId (returned by the Get Token API (opens new window)) |
| currentOpenUserId | String | Yes | currentOpenUserId (returned by the Query Employee by Phone Number API (opens new window)) |
| data | Map | Yes | Data map |
| idList | List | Yes | List of data IDs |
| dataObjectApiName | String | Yes | Object API name |
# Request Example
{
"corpAccessToken": "{corpAccessToken}",
"currentOpenUserId": "{currentOpenUserId}",
"corpId": "{corpId}",
"data": {
"idList": [],
"dataObjectApiName": "CampaignMembersObj"
}
}
# Response Parameters
| Parameter | Type | Description |
|---|---|---|
| traceId | string | Unique request ID |
| errorDescription | string | Error description |
| errorMessage | string | Error message |
| errorCode | Int | View 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 judgment, as errorMessage may change;