- 项目说明
- user用户
- permission权限
- department机构管理
updateUserProfile更新用户信息
PUT
/user/updateUserProfile
Last modified:2023-06-14 23:51:59
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Body Params application/json
uid
string
required
userName
string
required
gender
string
required
idCard
string
required
brith
string
required
city
string
required
mobile
string
required
email
string
required
address
string
required
Example
{
"uid": "24aa77f6-d100-4d64-876a-927d436d19b9",
"userName": "丁仪",
"gender": "2",
"idCard": "35078119640307368X",
"brith": "19640307",
"city": "北京",
"mobile": "13045670000",
"email": "foo@gmail.com",
"address": "北京市北京市市辖区东城区朝阳门街道236号"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'http://127.0.0.1:3001/api/user/updateUserProfile' \
--header 'Content-Type: application/json' \
--data-raw '{
"uid": "24aa77f6-d100-4d64-876a-927d436d19b9",
"userName": "丁仪",
"gender": "2",
"idCard": "35078119640307368X",
"brith": "19640307",
"city": "北京",
"mobile": "13045670000",
"email": "foo@gmail.com",
"address": "北京市北京市市辖区东城区朝阳门街道236号"
}'
Responses
🟢201Created
application/json
Body
success
boolean
required
message
string
required
Example
{
"success": true,
"message": "用户信息更新成功"
}
Modified at 2023-06-14 23:51:59