Petstore API

Updates a pet in the store with form data.

Updates a pet resource based on the form data.

post
/api/v3/pet/{petId}

Query Parameters

namestring

Name of pet that needs to be updated

statusstring

Status of pet that needs to be updated

Path Parameters

petIdinteger(int64)required

Response

successful operation

Pet

idinteger(int64)

Example:10

namestringrequired

Example:doggie

categoryobject
Show Child Parameters
photoUrlsarray[string]required
tagsarray[object]
Show Child Parameters
statusstring

pet status in the store

Allowed values:availablependingsold

post/pet/{petId}
 
Invalid URL value '/api/v3/pet/'
- missing protocol

Deletes a pet.

Delete a pet.

delete
/api/v3/pet/{petId}

Path Parameters

petIdinteger(int64)required

Headers

api_keystring

Response

Pet deleted

delete/pet/{petId}
 
Invalid URL value '/api/v3/pet/'
- missing protocol

Uploads an image.

Upload image of the pet.

post
/api/v3/pet/{petId}/uploadImage

Query Parameters

additionalMetadatastring

Additional Metadata

Path Parameters

petIdinteger(int64)required

Body

application/octet-stream
string

Response

application/json

successful operation

ApiResponse

codeinteger(int32)
typestring
messagestring
post/pet/{petId}/uploadImage

Body

No file selected
 
Invalid URL value '/api/v3/pet//uploadImage'
- missing protocol
application/json

store

Access to Petstore orders

Returns pet inventories by status.

Returns a map of status codes to quantities.

get
/api/v3/store/inventory

Response

application/json

successful operation

object
get/store/inventory
 
Invalid URL value '/api/v3/store/inventory'
- missing protocol
application/json