Updates a pet in the store with form data.
Updates a pet resource based on the form data.
POST
/pet/{petId}Path parameters
petIdinteger<int64>requiredID of pet that needs to be updated
Query parameters
namestringName of pet that needs to be updated
statusstringStatus of pet that needs to be updated
Responses
200successful operation
idinteger<int64>namestringrequiredcategoryCategoryShow propertiesHide properties
idinteger<int64>namestringphotoUrlsstring[]requiredtagsTag[]Show propertiesHide properties
Array of
Tagidinteger<int64>namestringstatusstringpet status in the store
Allowed:
availablependingsold400Invalid input
defaultUnexpected error
Request
curl -X POST "/api/v3/pet/0"const response = await fetch("/api/v3/pet/0", {
method: "POST"
});import requests
response = requests.post(
"/api/v3/pet/0",
)Response
{
"id": 10,
"name": "doggie",
"category": {
"id": 1,
"name": "Dogs"
},
"photoUrls": [
"string"
],
"tags": [
{
"id": 0,
"name": "string"
}
],
"status": "available"
}Invalid input
Unexpected error