Update an existing pet
1 min
PUT
//petstore.swagger.io/v2/pet
Accept-Languagestring<p>The language you prefer for messages. Supported values are en-AU, en-CA, en-GB, en-US</p>
bodyobjectPet object that needs to be added to the store
400Invalid ID supplied
404Pet not found
405Validation exception
curl --location --request PUT '//petstore.swagger.io/v2/pet' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Accept-Language: en-AU' \
--data '{
"id": 0,
"category": {
"id": 0,
"name": "",
"sub": {
"prop1": ""
}
},
"name": "",
"photoUrls": 0,
"friend": {
"": ""
},
"tags": [
{
"id": 0,
"name": ""
}
],
"status": "pending",
"petType": "",
"huntingSkill": 0
}'Have a question?
Our super-smart AI, knowledgeable support team and an awesome community will get you an answer in a flash.
To ask a question or participate in discussions, you'll need to authenticate first.