Skip to content
Get started

Update user

users.update(strexisting_username, UserUpdateParams**kwargs)
PUT/user/{username}

This can only be done by the logged in user.

ParametersExpand Collapse
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]
user_status: Optional[int]

User Status

formatint32

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",
)
Returns Examples