Update an existing pet
Update an existing pet by id.
PUT
https://petstore3.swagger.io/api/v3/pet Body parameters
Update an existent pet in the store.
id integer required The id of the pet to update.
name string required The pet’s name.
status enum Pet status in the store. One of available, pending, or sold.
Returns
Returns the updated Pet.
id integer Unique id for the pet.
Request
curl -X PUT https://petstore3.swagger.io/api/v3/pet \ -H "Content-Type: application/json" \ -d '{ "id": 10, "name": "doggie", "status": "sold" }'Response
{ "id": 10, "name": "doggie", "status": "sold" }