Updates a pet in the store with form data.
Updates a pet resource based on the form data.
Path parameters
ID of pet that needs to be updated
Query parameters
Name of pet that needs to be updated
Status of pet that needs to be updated
Response
successful operation
Example response
{
"id": 10,
"name": "doggie",
"category": {
"id": 1,
"name": "Dogs"
}
}Changes
Changed in 6 of the 53 revisions of this API.5415
- ○
added the non-success response with the status
400response-non-success-status-added
- ○
removed the non-success response with the status
405response-non-success-status-removed
- ○
added the success response with the status
200response-success-status-added
This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ▲
removed the success response with the status
200response-success-status-removed
- ○
added the non-success response with the status
405response-non-success-status-added
- ○
removed the non-success response with the status
400response-non-success-status-removed
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ○
added the non-success response with the status
400response-non-success-status-added
- ○
removed the non-success response with the status
405response-non-success-status-removed
- ○
added the success response with the status
200response-success-status-added
This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ▲
removed the success response with the status
200response-success-status-removed
- ○
added the non-success response with the status
405response-non-success-status-added
- ○
removed the non-success response with the status
400response-non-success-status-removed
This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ▲
removed the media type
application/xmlfor the response with the statusdefaultresponse-media-type-removed
- ▲
removed the required property
namefrom the response with thedefaultstatusresponse-required-property-removed
- ▲
removed the required property
photoUrlsfrom the response with thedefaultstatusresponse-required-property-removed
- ●
removed the optional property
categoryfrom the response with thedefaultstatusresponse-optional-property-removed
- ●
removed the optional property
idfrom the response with thedefaultstatusresponse-optional-property-removed
- ●
removed the optional property
statusfrom the response with thedefaultstatusresponse-optional-property-removed
- ●
removed the optional property
tagsfrom the response with thedefaultstatusresponse-optional-property-removed
- ○
added the required property
codeto the response with thedefaultstatusresponse-required-property-added
- ○
added the required property
messageto the response with thedefaultstatusresponse-required-property-added
- ▲
- ○
added the non-success response with the status
400response-non-success-status-added
- ○
removed the non-success response with the status
405response-non-success-status-removed
- ○
added the success response with the status
200response-success-status-added
This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○