Update an existing pet
PUT/getuser
Update an existing pet by Id
Request
- application/json
- application/xml
- application/x-www-form-urlencoded
Body
required
Update an existent pet in the store
Array [
]
category
category
tags
tag[]
Possible values: [available, pending, sold]
pet status in the store
Body
required
Update an existent pet in the store
Array [
]
category
category
tags
tag[]
Possible values: [available, pending, sold]
pet status in the store
Body
required
Update an existent pet in the store
Array [
]
category
category
tags
tag[]
Possible values: [available, pending, sold]
pet status in the store
Responses
- 200
- 400
- 404
- 405
Successful operation
- application/json
- application/xml
- Schema
- Example (from schema)
Schema
Array [
]
category
category
tags
tag[]
Possible values: [available, pending, sold]
pet status in the store
{
"id": 10,
"name": "doggie",
"category": {
"id": 1,
"name": "Dogs"
},
"photoUrls": [
"string"
],
"tags": [
{
"id": 0,
"name": "string"
}
],
"status": "available"
}
- Schema
- Example (from schema)
Schema
Array [
]
category
category
tags
tag[]
Possible values: [available, pending, sold]
pet status in the store
<root>
<id>10</id>
<name>doggie</name>
<category>
<id>1</id>
<name>Dogs</name>
</category>
<photoUrls>string</photoUrls>
<tags>
<id>0</id>
<name>string</name>
</tags>
<status>available</status>
</root>
Invalid ID supplied
Pet not found
Validation exception