Update user

PUT /user/{username}

This can only be done by the logged in user.

Path parameters

  • username string Required

    name that needs to be updated

Body

Update an existent user in the store

  • id integer(int64)
  • username string
  • firstName string
  • lastName string
  • email string
  • password string
  • phone string
  • userStatus integer(int32)

    User Status

Body

Update an existent user in the store

  • id integer(int64)
  • username string
  • firstName string
  • lastName string
  • email string
  • password string
  • phone string
  • userStatus integer(int32)

    User Status

Body

Update an existent user in the store

  • id integer(int64)
  • username string
  • firstName string
  • lastName string
  • email string
  • password string
  • phone string
  • userStatus integer(int32)

    User Status

Responses

  • default

    successful operation

curl \
 --request PUT '/api/v3/user/{username}' \
 --header "Content-Type: application/json" \
 --data '{"id":10,"username":"theUser","firstName":"John","lastName":"James","email":"john@email.com","password":"12345","phone":"12345","userStatus":1}'
curl \
 --request PUT '/api/v3/user/{username}' \
 --header "Content-Type: application/xml"
curl \
 --request PUT '/api/v3/user/{username}' \
 --header "Content-Type: application/x-www-form-urlencoded" \
 --data 'id=10&username=theUser&firstName=John&lastName=James&email=john%40email.com&password=12345&phone=12345&userStatus=1'
Request examples
{
  "id": 10,
  "username": "theUser",
  "firstName": "John",
  "lastName": "James",
  "email": "john@email.com",
  "password": "12345",
  "phone": "12345",
  "userStatus": 1
}
Request examples
<?xml version="1.0" encoding="UTF-8"?>
<root>
  <id type="integer">10</id>
  <username>theUser</username>
  <firstName>John</firstName>
  <lastName>James</lastName>
  <email>john@email.com</email>
  <password>12345</password>
  <phone>12345</phone>
  <userStatus type="integer">1</userStatus>
</root>