Try it

Add a new pet to the store

Authorizations:
petstore_auth (write:petsread:pets)
Request Body schema:

Pet object that needs to be added to the store

id
integer <int64>
category
object (Category)
name
required
string
photoUrls
required
Array of strings
tags
Array of objects (Tag)
status
string
Enum: "available" "pending" "sold"

pet status in the store

Responses

405

Invalid input

post/pet
http://petstore.swagger.io/v2/pet

Request samples

Content type
Copy
Expand all Collapse all
{
  • "id": 0,
  • "category":
    {
    },
  • "name": "doggie",
  • "photoUrls":
    [
    ],
  • "tags":
    [
    ],
  • "status": "available"
}