Update an existing pet
/pet
Update an existing pet by Id
Body Parameters
name: string
photoUrls: array of string
id: optional number
Returns
Update an existing pet
curl https://petstore3.swagger.io/api/v3/pet \
-X PUT \
-H 'Content-Type: application/json' \
-H "api_key: $PETSTORE_API_KEY" \
-d '{
"name": "doggie",
"photoUrls": [
"string"
],
"id": 10
}'
{
"name": "doggie",
"photoUrls": [
"string"
],
"id": 10,
"category": {
"id": 1,
"name": "Dogs"
},
"status": "available",
"tags": [
{
"id": 0,
"name": "name"
}
]
}Returns Examples
{
"name": "doggie",
"photoUrls": [
"string"
],
"id": 10,
"category": {
"id": 1,
"name": "Dogs"
},
"status": "available",
"tags": [
{
"id": 0,
"name": "name"
}
]
}