Update profile of current user
patch
/api/user/profileUpdate user profile for the current logged-in user.
Request
Security:
Bearer AuthBody application/json
usernamestring
required
The username of current user.
fullnamestring
The fullname of current user.
Response
Schema:
application/jsonBody application/json
json
// SUCCESS
{
"code": "0",
"message": "Ok"
}// SUCCESS
{
"code": "0",
"message": "Ok"
}json
// USER_ALREADY_EXISTS
{
"code": "102",
"message": "User already exists"
}// USER_ALREADY_EXISTS
{
"code": "102",
"message": "User already exists"
}json
// USER_UPDATE_FAILED
{
"code": "106",
"message": "User profile update failed"
}// USER_UPDATE_FAILED
{
"code": "106",
"message": "User profile update failed"
}