Update an existing pet
PUT/pet
URL | Description |
---|---|
https://petstore.swagger.io/v2 | Default server |
https://petstore.swagger.io/sandbox | Sandbox server |
http://127.0.0.1:4010 | Prism Mock API (local) |
Request
Header Parameters
The language you prefer for messages. Supported values are en-AU, en-CA, en-GB, en-US
en-AU
Cookie Parameters
Some cookie
- application/json
- application/xml
Body
required
Pet object that needs to be added to the store
Array [
]
- cat
- dog
- bee
category
Category
Categories this pet belongs to
Category name
Possible values: non-empty
sub
object
Test Sub Category
Dumb Property
The name given to a pet
The list of URL to a cute photos featuring pet
Possible values: <= 20
tags
Tag[]
required
Tags attached to the pet
Possible values: >= 1
Tag name
Possible values: non-empty
Pet status in the store
Enum Value | Description |
---|---|
available | When the pet is available |
pending | When the pet is being sold |
sold | When the pet has been sold. These descriptions can contain line breaks and also links |
Possible values: [available
, pending
, sold
]
petType
string
Type of a pet
Possible values: [cat
, dog
, bee
]
The measured skill for hunting
Possible values: [clueless
, lazy
, adventurous
, aggressive
]
lazy
The size of the pack the dog is from
Possible values: >= 1
1
Average amount of honey produced per day in ounces
0
Body
required
Pet object that needs to be added to the store
hooray
Responses
- 400
- 404
- 405
Invalid ID supplied
Pet not found
Validation exception