API blocks
A first block:
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:
10namestringRequiredExample:
doggiephotoUrlsstring[]Required
statusstring · enumOptionalPossible values:
pet status in the store
Responses
200
Successful operation
400
Invalid input
422
Validation exception
default
Unexpected error
post
/petUpdate 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:
10namestringRequiredExample:
doggiephotoUrlsstring[]Required
statusstring · enumOptionalPossible values:
pet status in the store
Responses
200
Successful operation
400
Invalid ID supplied
404
Pet not found
422
Validation exception
default
Unexpected error
put
/petMultiple status values can be provided with comma separated strings.
Required scopes
This endpoint requires the following scopes:
- : modify pets in your account
- : read your pets
Authorizations
OAuth2implicitRequired
Authorization URL:
Query parameters
statusstring · enumOptionalDefault:
Status values that need to be considered for filter
availablePossible values: Responses
200
successful operation
400
Invalid status value
default
Unexpected error
get
/pet/findByStatusDelete a pet.
Required scopes
This endpoint requires the following scopes:
- : modify pets in your account
- : read your pets
Authorizations
OAuth2implicitRequired
Authorization URL:
Path parameters
petIdinteger · int64Required
Pet id to delete
Header parameters
api_keystringOptional
Responses
200
Pet deleted
No content
400
Invalid pet value
default
Unexpected error
delete
/pet/{petId}No content
Webhooks :
Models:
Last updated