Add a new pet
Add a new pet to the store.
POST
https://petstore3.swagger.io/api/v3/pet Body parameters
Create a new pet in the store.
name string required The pet’s name.
photoUrls array of strings required URLs of the pet’s photos.
category Category The category this pet belongs to.
status enum Pet status in the store. One of available, pending, or sold.
Returns
Returns the created Pet.
id integer Unique id for the new pet.
The Pet object
{ "id": 10, "name": "doggie", "category": { "id": 1, "name": "Dogs" }, "photoUrls": ["https://example.com/doggie.png"], "tags": [{ "id": 1, "name": "friendly" }], "status": "available"}Request
curl https://petstore3.swagger.io/api/v3/pet \ -H "Content-Type: application/json" \ -d '{ "name": "doggie", "photoUrls": ["https://example.com/doggie.png"], "status": "available" }'Response
{ "id": 10, "name": "doggie", "photoUrls": ["https://example.com/doggie.png"], "status": "available"}