批量修改用户详细信息
测试中
正式环境
https://accounts.zwsoft.cn
正式环境
https://accounts.zwsoft.cn
POST
/api/v1.0/trusted/users/details
公开
最后修改时间:2025-03-10 06:59:11
单次修改不超过500个用户
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Header 参数
Authorization
string
必需
Body 参数application/json
array of:
guid
string
用户guid
firstName
string | null
名字
lastName
string | null
姓氏
displayName
string | null
显示名称
preferredLanguage
string | null
偏好语言
dateOfBirth
string | null
出生日期
address
object
联系地址
street
string | null
街道
postalCode
string | null
邮政编码
city
string | null
城市
provinceName
string | null
省份
countryName
string | null
国家地区名
countryCode
string | null
国家地区代号
jobInfo
object
工作信息
company
string | null
公司名称
industry
string | null
行业
department
string | null
部门
title
string | null
职位
isPhoneReceiveInfo
boolean | null
手机号是否接收营销通知
isEmailReceiveInfo
string | null
邮箱是否接收营销通知
示例
[
{
"guid": "39890479-f96d-46e7-8bde-93bb4945a31a",
"dateOfBirth": "1997-01-01",
"address": {
"street": "珠江西路15号",
"postalCode": "510623",
"countryCode": "CN"
},
"jobInfo": {
"company": "广州中望龙腾软件股份有限公司",
"industry": "计算机软件",
"department": "研发中台",
"title": "测试工程师"
},
"isEmailReceiveInfo": true
},
{
"guid": "2eb0e44e-28f4-488d-8f03-a191b9fb03fb",
"displayName": "JLLLL"
}
]
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://accounts.zwsoft.cn/api/v1.0/trusted/users/details' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '[
{
"guid": "39890479-f96d-46e7-8bde-93bb4945a31a",
"dateOfBirth": "1997-01-01",
"address": {
"street": "珠江西路15号",
"postalCode": "510623",
"countryCode": "CN"
},
"jobInfo": {
"company": "广州中望龙腾软件股份有限公司",
"industry": "计算机软件",
"department": "研发中台",
"title": "测试工程师"
},
"isEmailReceiveInfo": true
},
{
"guid": "2eb0e44e-28f4-488d-8f03-a191b9fb03fb",
"displayName": "JLLLL"
}
]'
返回响应
🟢200成功
application/json
Body
status
integer
返回码
message
string
错误详细信息
error
string | null
错误代号
data
array [object {2}]
返回数据
error
object | null
错误信息
userInfo
object (用户详细信息)
必需
示例
{
"status": 0,
"message": "success",
"error": null,
"data": [
{
"error": null,
"userInfo": {
"dateOfBirth": "2008-01-01",
"address": {
"street": "珠江西路12345号",
"postalCode": "510623",
"city": null,
"provinceName": null,
"countryName": null,
"countryCode": "CN"
},
"jobInfo": {
"company": "zw",
"industry": "车辆与交通运输",
"department": "测试11下/腾讯公司/超级无敌长的部门名1/超级无敌长的部门名2/超级无敌长的部门名3/超级无敌长的部门名4/超级无敌长的部门名",
"title": "测试工程师6"
},
"isPhoneReceiveInfo": false,
"isEmailReceiveInfo": false,
"fromClient": "CP",
"externalLoginInfos": [
{
"provider": "Huawei",
"displayName": "hid32648117",
"externalID": "MDHHfZjk8h90SVD3t8eH9qmPJTZvMTn50hzHhQeSkRxpvA"
}
],
"guid": "39890479-f96d-46e7-8bde-93bb4945a31a",
"firstName": "嘉良",
"lastName": "Li",
"displayName": "嘉良 Li",
"profileImage": "https://test.resources.zwsoft.cn/prd/ZwsoftAccounts/public/userHeadImg/UtrXIbFfU-shYijOGiAEKqwzFiBnKLEPLKAsdFVd48kVCgVnpoIrRvTVxAyTRzJ5/originalPic.png?v=1720508437",
"preferredLanguage": "zh-CN",
"userName": "LIJIALIANG1",
"phone": null,
"email": null,
"itc": null,
"accountState": "Normal",
"securityStamp": "9aa256c2-afb2-43ee-b429-26298ec4a4e1",
"rememberLogin": false,
"isEmployee": false,
"createTime": "2022-06-07T09:04:18.000Z",
"lastLoginTime": "2025-03-10T02:04:56.711Z",
"region": "CN"
}
},
{
"error": null,
"userInfo": {
"dateOfBirth": "2004-5-9",
"address": {
"street": "珠江西路20号",
"postalCode": null,
"city": null,
"provinceName": null,
"countryName": "中国",
"countryCode": null
},
"jobInfo": {
"company": "zw",
"industry": "高科技与生活",
"department": "中台bbb",
"title": null
},
"isPhoneReceiveInfo": false,
"isEmailReceiveInfo": false,
"fromClient": "accounts",
"externalLoginInfos": [
{
"provider": "WeChat",
"displayName": "李嘉良",
"externalID": "oMo86tzj2SjizZzK4-_6-J6GTok4"
}
],
"guid": "2eb0e44e-28f4-488d-8f03-a191b9fb03fb",
"firstName": "-",
"lastName": "-",
"displayName": "JLLLL",
"profileImage": "https://test.resources.zwsoft.cn/prd/ZwsoftAccounts/public/userHeadImg/WNHLoiGhNL3hXvIgJ-Wff5NGUrWMHejhwxSV65lZRQOq_0-VqajXR40EiwKkq_rC/originalPic.png?v=1678847665",
"preferredLanguage": "zh-CN",
"userName": "WUZ90R6SXK",
"phone": null,
"email": null,
"itc": null,
"accountState": "Normal",
"securityStamp": "5fd7f48f-317b-40d8-80f1-dd350296419c",
"rememberLogin": false,
"isEmployee": false,
"createTime": "2022-06-20T10:03:41.000Z",
"lastLoginTime": "2025-03-10T06:47:25.429Z",
"region": "CN"
}
}
]
}
修改于 2025-03-10 06:59:11