Pets

Creating a new pet

Add a new pet to the store.

post

Add a new pet to the store.

Required scopes
This endpoint requires the following scopes:
  • : modify pets in your account
  • : read your pets
Authorizations
OAuth2implicitRequired
Authorization URL:
Body
idinteger · int64OptionalExample: 10
namestringRequiredExample: doggie
photoUrlsstring[]Required
statusstring · enumOptional

pet status in the store

Possible values:
Responses
200

Successful operation

post
/pet

Updating a pet

Update an existing pet.

put

Update an existing pet by Id.

Required scopes
This endpoint requires the following scopes:
  • : modify pets in your account
  • : read your pets
Authorizations
OAuth2implicitRequired
Authorization URL:
Body
idinteger · int64OptionalExample: 10
namestringRequiredExample: doggie
photoUrlsstring[]Required
statusstring · enumOptional

pet status in the store

Possible values:
Responses
200

Successful operation

put
/pet

Good to know: These API methods were auto-generated from an example OpenAPI file. You'll see that it's not editable – that's because the contents are synced to a URL! Any time the linked file changes, the documentation will change too.

Last updated