Update user
users.update(strexisting_username, UserUpdateParams**kwargs)
PUT/user/{username}
This can only be done by the logged in user.
Parameters
existing_username: str
id: Optional[int]
email: Optional[str]
first_name: Optional[str]
last_name: Optional[str]
password: Optional[str]
phone: Optional[str]
username: Optional[str]
Update user
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.users.update(
existing_username="username",
)