Update user resource.
This can only be done by the logged in user.
PUT
/user/{username}Path parameters
usernamestringrequiredname that need to be deleted
Request body
application/jsonUpdate an existent user in the store
idinteger<int64>usernamestringfirstNamestringlastNamestringemailstringpasswordstringphonestringuserStatusinteger<int32>User Status
Responses
200successful operation
400bad request
404user not found
defaultUnexpected error
Request
curl -X PUT "/api/v3/user/string" \
-H "Content-Type: application/json" \
-d '{
"id": 10,
"username": "theUser",
"firstName": "John",
"lastName": "James",
"email": "john@email.com",
"password": "12345",
"phone": "12345",
"userStatus": 1
}'const response = await fetch("/api/v3/user/string", {
method: "PUT",
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify({
"id": 10,
"username": "theUser",
"firstName": "John",
"lastName": "James",
"email": "john@email.com",
"password": "12345",
"phone": "12345",
"userStatus": 1
})
});import requests
response = requests.put(
"/api/v3/user/string",
headers={
"Content-Type": "application/json"
},
json={
"id": 10,
"username": "theUser",
"firstName": "John",
"lastName": "James",
"email": "john@email.com",
"password": "12345",
"phone": "12345",
"userStatus": 1
},
)Response
successful operation
bad request
user not found
Unexpected error