Updates a pet in the store with form data.
POST/pet/:petId
Updates a pet resource based on the form data.
Request
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
petId | integer (int64) | required | ID of pet that needs to be updated |
Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
name | string | optional | Name of pet that needs to be updated |
status | string | optional | Status of pet that needs to be updated |
Body
No request body
Responses
application/jsonapplication/xml
idinteger(int64)Example: 10
integer (int64)
namestringExample: "doggie"
string
categoryobjectidinteger(int64)Example: 1
integer (int64)
namestringExample: "Dogs"
string
photoUrlsarrayArray of:
string
tagsarrayArray of:
idinteger(int64)integer (int64)
namestringstring
statusstringpet status in the store
string
pet status in the store
idinteger(int64)Example: 10
integer (int64)
namestringExample: "doggie"
string
categoryobjectidinteger(int64)Example: 1
integer (int64)
namestringExample: "Dogs"
string
photoUrlsarrayArray of:
string
tagsarrayArray of:
idinteger(int64)integer (int64)
namestringstring
statusstringpet status in the store
string
pet status in the store
Response Info
Status Code:200
Description:successful operation
Content Types:
application/jsonapplication/xml