Set Member Status (Batch)
# Not recommended to continue using the offline API!!!
# Description
Set member status (batch)
# Request Specification
Request Method: POST + application/json
Request Path: https://[${Enter the domain name of the cloud}]/cgi/crm/v2/data/update?thirdTraceId=[${random string}]
This API is not maintained. It is recommended to use the object-oriented API (modify personnel object)
# Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| corpAccessToken | String | Yes | Enterprise application access token |
| corpId | String | Yes | Open platform company account |
| openUserIds | List | Yes | List of employee open platform accounts |
| status | Int | Yes | Status (1: disabled, 2: enabled) |
# Request Example
{
"corpAccessToken": "{corpAccessToken}",
"corpId": "{corpId}",
"openUserIds": [
"openUserId1",
"openUserId2"
],
"status": 1
}
# 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 return value for logical judgment, as errorMessage may change;