Add a new pet to the store

Add new pet to the store inventory.

SecurityOAuth2: petstore_auth
Request
cookie Parameters
cookieParam
required
integer <int64>

Some cookie

header Parameters
Accept-Language
string
Default: en-AU

The language you prefer for messages. Supported values are en-AU, en-CA, en-GB, en-US

Example: en-US
Request Body schema:

Pet object that needs to be added to the store

object

Categories this pet belongs to

name
required
string

The name given to a pet

photoUrls
required
Array of strings <url> <= 20 items

The list of URL to a cute photos featuring pet

friend
object Recursive
Array of objects (Tag) non-empty

Tags attached to the pet

status
string

Pet status in the store

Enum: "available" "pending" "sold"
petType
string

Type of a pet

huntingSkill
required
string
Default: "lazy"

The measured skill for hunting

Enum: "clueless" "lazy" "adventurous" "aggressive"
post
/pet
Request samples
{ "category": { "name": "string", }, "name": "Guru", "photoUrls": [ "string" ], "friend": { }, "tags": [ ], "status": "available", "petType": "cat", "huntingSkill": "adventurous" }
Responses

405

Invalid input