Update an existing pet
PUT/pet
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 [
- ]
id int64
name stringrequired
category category
id int64
name string
photoUrls string[]required
tags tag[]
id int64
name string
status string
Possible values: [available
, pending
, sold
]
pet status in the store
Body
required
Update an existent pet in the store
- Array [
- ]
id int64
name stringrequired
category category
id int64
name string
photoUrls string[]required
tags tag[]
id int64
name string
status string
Possible values: [available
, pending
, sold
]
pet status in the store
Body
required
Update an existent pet in the store
- Array [
- ]
id int64
name stringrequired
category category
id int64
name string
photoUrls string[]required
tags tag[]
id int64
name string
status string
Possible values: [available
, pending
, sold
]
pet status in the store
Responses
- 200
- 400
- 404
- 405
Successful operation
- application/xml
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
id int64
name stringrequired
category category
id int64
name string
photoUrls string[]required
tags tag[]
id int64
name string
status string
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>
- Schema
- Example (from schema)
Schema
- Array [
- ]
id int64
name stringrequired
category category
id int64
name string
photoUrls string[]required
tags tag[]
id int64
name string
status string
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"
}
Invalid ID supplied
Pet not found
Validation exception
Loading...