This can only be done by the logged in user.
Updated user object
One of:
User password, MUST contain a mix of upper and lower case letters, as well as digits
Example:"drowssaP123"
User phone number in international format
Example:"+1-202-555-0192"
- Mock serverhttps://innovario.apishowdown.com/_mock/petstore/user/{username}
- Default serverhttps://petstore.swagger.io/v2/user/{username}
- Sandbox serverhttps://petstore.swagger.io/sandbox/user/{username}
curl -i -X PUT \
'https://innovario.apishowdown.com/_mock/petstore/user/{username}' \
-H 'Content-Type: application/json' \
-d '{
"pet": {
"category": {
"name": "string",
"sub": {
"prop1": "string"
}
},
"name": "Guru",
"photoUrls": [],
"friend": {},
"tags": [
{
"name": "string"
}
],
"status": "available",
"petType": "cat",
"huntingSkill": "adventurous"
},
"username": "John78",
"firstName": "John",
"lastName": "Smith",
"email": "john.smith@example.com",
"password": "drowssaP123",
"phone": "+1-202-555-0192",
"userStatus": 10,
"image": "string",
"addresses": [
{
"city": "string",
"country": "string",
"street": "string"
},
0
]
}'User is updated successfully
One of:
User password, MUST contain a mix of upper and lower case letters, as well as digits
Example:"drowssaP123"
User phone number in international format
Example:"+1-202-555-0192"
Response
{ "id": 0, "pet": { "id": 0, "category": { … }, "name": "Guru", "photoUrls": [], "friend": {}, "tags": [ … ], "status": "available", "petType": "cat", "huntingSkill": "adventurous" }, "username": "John78", "firstName": "John", "lastName": "Smith", "email": "john.smith@example.com", "password": "drowssaP123", "phone": "+1-202-555-0192", "userStatus": 10, "image": "string", "addresses": [ { … }, 0 ] }