Skip to content
Get started

Updates a pet in the store with form data

pets.update_by_id(intpet_id, PetUpdateByIDParams**kwargs)
POST/pet/{petId}

Updates a pet in the store with form data

ParametersExpand Collapse
pet_id: int
name: Optional[str]

Name of pet that needs to be updated

status: Optional[str]

Status of pet that needs to be updated

Updates a pet in the store with form data

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
)
client.pets.update_by_id(
    pet_id=0,
)
Returns Examples