## Update user

`client.users.update(stringexistingUsername, UserUpdateParamsbody?, RequestOptionsoptions?): void`

**put** `/user/{username}`

This can only be done by the logged in user.

### Parameters

- `existingUsername: string`

- `body: UserUpdateParams`

  - `id?: number`

  - `email?: string`

  - `firstName?: string`

  - `lastName?: string`

  - `password?: string`

  - `phone?: string`

  - `username?: string`

  - `userStatus?: number`

    User Status

### Example

```typescript
import RpTestDocs1 from 'rp-test-docs-1';

const client = new RpTestDocs1({
  apiKey: process.env['PETSTORE_API_KEY'], // This is the default and can be omitted
});

await client.users.update('username');
```
