Modify Member
# Not recommended to continue using this offline interface!!!
# Description
Modify member information.
# Request Specification
Request Method: POST + application/json
Request Path: https://${Enter cloud domain}/cgi/crm/v2/data/update?thirdTraceId=${Random String}
# Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| corpAccessToken | String | Yes | Corporate application access company legitimacy token |
| corpId | String | Yes | Open platform company account |
| user | Map | Yes | Department ID |
| openUserId | String | Yes | Employee ID |
| account | String | No | Employee account (cannot be duplicated), not provided means no modification |
| name | String | No | Employee nickname (cannot be duplicated), not provided means no modification |
| fullName | String | No | Employee full name, not provided means no modification |
| position | String | No | Position, not provided means no modification |
| gender | String | No | Gender, valid values: {M,F}, not provided means no modification |
| mobile | String | No | Mobile phone number (cannot be duplicated), not provided means no modification |
| String | No | Email address, not provided means no modification | |
| String | No | QQ number, not provided means no modification | |
| weixin | String | No | WeChat ID, not provided means no modification |
| mainDepartmentId | Int | No | Main department ID |
| attachingDepartmentIds | List | No | Attached department list (int collection must be non-negative integers, max value: 500, not provided means no modification) |
| employeeNumber | String | No | Employee number, required if company system name allows duplicates |
| hireDate | String | No | Hire date |
| birthDate | String | No | Employee birthday |
| startWorkDate | String | No | Start work date |
| leaderId | String | No | Reporting manager |
# Request Example
{
"corpAccessToken": "{corpAccessToken}",
"corpId": "{corpId}",
"user": {
"qq": "45682156",
"hireDate": "1504173600000",
"gender": "M",
"attachingDepartmentIds": [
1,
2,
3
],
"mobile": "15845698456",
"fullName": "xxx-fullName",
"openUserId": "fsuid_openId2",
"birthDate": "1504627199000",
"employeeNumber": "168XXXX123",
"leaderId": "FSUID_XXXXXXXXXXXXXXXXXXX",
"weixin": "15010478956",
"name": "xx-name",
"position": "经理",
"account": "",
"email": "xxx@fxiaoke.com",
"startWorkDate": "1504173600000",
"mainDepartmentId": ""
}
}
# Response Parameters
| Parameter | Type | Description |
|---|---|---|
| traceId | string | Unique request ID |
| errorDescription | string | Error description |
| errorMessage | string | Error message |
| errorCode | Int | Error Codes Reference |
# Response Example
{
"traceId": "E-O.827xxxxxx",
"errorDescription": "success",
"errorMessage": "OK",
"errorCode": 0
}
# Notes
- Do not use the message field in the response for logical judgments, as errorMessage may change;