Theme switcher

Add a new pet to the store

Body Parameters

idinteger

A unique identifier assigned to the pet within the store system.

namestring Required

The name given to the pet for identification and display within the store.

categoryobject

Specifies the category to which the pet belongs, including attributes such as id and name to classify the pet type.

Show child attributes

photoUrlsarray Required

A list of URLs pointing to images of the pet, used for display purposes in the store.

Show child attributes

tagsarray

An array of tags associated with the pet for additional categorization or search filtering; each tag includes an id and name.

Show child attributes

statusstring

Indicates the pet's current availability status in the store; valid values include available, pending, or sold.

Response

200
Object

Successful operation

Response Attributes

idinteger

A unique identifier assigned to the pet within the store system.

namestring Required

The name given to the pet for identification and display within the store.

categoryobject

Specifies the category to which the pet belongs, including attributes such as id and name to classify the pet type.

Show child attributes

photoUrlsarray Required

A list of URLs pointing to images of the pet, used for display purposes in the store.

Show child attributes

tagsarray

An array of tags associated with the pet for additional categorization or search filtering; each tag includes an id and name.

Show child attributes

statusstring

Indicates the pet's current availability status in the store; valid values include available, pending, or sold.

400
Object

Invalid input

422
Object

Validation exception

Was this section helpful?

POST

/

Select
1

Response

Was this section helpful?