- discard(废弃)
- demo(模板-参考示例)
- usmile-wx(微信)
- uc(用户统一中心)
- user-web(健康&设备&我的)
- bff-cloud
- iot-sevice(IOT平台)
- cloud-admin(运营后台)
修改用户信息
POST
https://test.myusmile.online/user/changeAccountInfo
请求参数
Header 参数
TOK
string
可选
默认值:
{{token}}
Body 参数application/json
accountId
string
用户i
nickName
string
昵称
imgUrl
string
头像url
gender
string
性别
birthdaySecond
string
出生日期
status
string
账号状态
示例
{
"gender": "2",
"birthdaySecond": 780076800,
"nickName": "0921晶晶",
"accountId": {{accountId}},
"imgUrl": ""
}
示例代码
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://test.myusmile.online/user/changeAccountInfo' \
--header 'TOK: ' \
--header 'Content-Type: application/json' \
--data-raw '{
"gender": "2",
"birthdaySecond": 780076800,
"nickName": "0921晶晶",
"accountId": ,
"imgUrl": ""
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{
"flag": true,
"code": 20000,
"message": "操作成功",
"data": {
"id": "1704681398078472194",
"nickName": "0921晶晶",
"imgUrl": "https://usm-app.oss-cn-shenzhen.aliyuncs.com/images/test/2023-09-21/1704681398078472194-20230921101838.png",
"gender": "2",
"birthdaySecond": 780076800,
"registerDay": 1,
"registerTimestampMS": 1695262691000,
"phone": "13923750104",
"status": "0",
"hasPwd": "0"
}
}