Update an existing pet
PUT
/petUpdate an existing pet by Id
Request
Body Params application/x-www-form-urlencoded
id
integer
optional
Example:
10
name
string
required
Example:
doggie
category
string
optional
photoUrls
array[string]
required
tags
array[string]
optional
status
string
optional
pet status in the store
Request samples
Responses
Successful operation(200)
Invalid ID supplied(400)
Pet not found(404)
Validation exception(405)
Successful operation
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
id
integer <int64>
optional
Example:
10
name
string <string>
required
Example:
doggie
category
object (Category)
optional
id
integer <int64>
optional
Example:
1
name
string
optional
Example:
Dogs
photoUrls
array[string]
required
tags
array[object (Tag) {2}]
optional
id
integer <int64>
optional
name
string
optional
status
enum<string> <string>
optional
pet status in the store
Allowed values:
availablependingsold
Example
{
"id": 10,
"name": "doggie",
"category": {
"id": 1,
"name": "Dogs"
},
"photoUrls": [
"string"
],
"tags": [
{
"id": 0,
"name": "string"
}
],
"status": "available"
}
Last modified: 2 years ago