{
"username": "新用户名",
"settings": {
"theme": "dark",
"language": "zh-CN"
}
}
curl --location --request PATCH '/users/current' \
--header 'Authorization: Bearer {{token}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"username": "新用户名",
"settings": {
"theme": "dark",
"language": "zh-CN"
}
}'
{
"code": 200,
"message": "更新用户信息成功",
"data": {
"id": 1,
"username": "新用户名",
"email": "admin@example.com",
"role": "SUPER_ADMIN",
"enterpriseId": 1,
"enterpriseName": "测试企业",
"organizationId": "123456789",
"lastLoginTime": "2019-08-24T14:15:22Z",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z",
"settings": {
"theme": "dark",
"language": "zh-CN"
},
"ossState": true
}
}