Skip to main content

Add a new pet to the store

POST 

/pet

Add new pet to the store inventory.

Request

Header Parameters

    Accept-Language stringrequired

    Default value: en-AU

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

    Example: en-US

Cookie Parameters

    cookieParam int64required

    Some cookie

Body

required

Pet object that needs to be added to the store

    category Category

    Categories this pet belongs to

    name stringrequired

    Possible values: non-empty

    Category name

    sub object

    Test Sub Category

    prop1 stringrequired

    Dumb Property

    name stringrequired

    The name given to a pet

    photoUrls url[]required

    Possible values: <= 20

    The list of URL to a cute photos featuring pet

    friend required
    tags Tag[]

    Possible values: >= 1

    Tags attached to the pet

  • Array [
  • name stringrequired

    Possible values: non-empty

    Tag name

  • ]
  • status stringrequired

    Possible values: [available, pending, sold]

    Pet status in the store

    petType string

    Possible values: [cat, dog, bee]

    Type of a pet

    huntingSkill stringrequired

    Possible values: [clueless, lazy, adventurous, aggressive]

    Default value: lazy

    The measured skill for hunting

Responses

Invalid input

Loading...