Update an existing pet by Id
Parameters
Returns
Update an existing pet
import os
from maxf_docs_dev_7 import MaxfDocsDev7
client = MaxfDocsDev7(
api_key=os.environ.get("PETSTORE_API_KEY"), # This is the default and can be omitted
)
pet = client.pets.update(
name="doggie",
photo_urls=["string"],
)
print(pet.id){
"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"
}
]
}