pet
Updates a pet in the store with form data.
Changed onUpdates a pet resource based on the form data.
post/pet/{petId}
Request
- Base URL: https://petstore3.swagger.io/api/v3
- URL: https://petstore3.swagger.io/api/v3/pet/{petId}
- Auth: OAuth 2 (implicit, authorization URL https://petstore3.swagger.io/oauth/authorize, scopes: write:pets, read:pets)
Path parameters
petIdinteger required
ID of pet that needs to be updated
Query parameters
namestring
Name of pet that needs to be updated
statusstring
Status of pet that needs to be updated
Response
successful operation
Example response
{
"id": 10,
"name": "doggie",
"category": {
"id": 1,
"name": "Dogs"
}
}Changes
- info
added the non-success response with the status
- info
removed the non-success response with the status
- info
added the success response with the status
- info
- breaking
removed the success response with the status
- info
added the non-success response with the status
- info
removed the non-success response with the status
- breaking