Update an existing pet
PUT
/pet
pet
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT '/pet' \
--data-urlencode 'name=doggie' \
--data-urlencode 'photoUrls='
Response Response Example
200 - Example 1
{
"id": 10,
"name": "doggie",
"category": {
"id": 1,
"name": "Dogs"
},
"photoUrls": [
"string"
],
"tags": [
{
"id": 0,
"name": "string"
}
],
"status": "available"
}
Request
Body Params application/x-www-form-urlencoded
id
integer
optional
Example:
10
name
string
required
Example:
doggie
category
string
optional
photoUrls
array[string]
required
tags
array[string]
optional
status
string
optional
Responses
Modified at 2022-10-19 09:27:46