> ## Documentation Index
> Fetch the complete documentation index at: https://docs.modelence.com/llms.txt
> Use this file to discover all available pages before exploring further.

# updateProfile

[API Reference](/api-reference/modelence/client/functions/../../../index) / [modelence](/api-reference/modelence/client/functions/../../index) / [client](/api-reference/modelence/client/functions/../index) / updateProfile

> **updateProfile**(`options`): `Promise`\<`null` | `User`>

Defined in: [packages/modelence/src/auth/client/index.ts:101](https://github.com/modelence/modelence/blob/f614ecc6811cdda9670d612872c8ff49a49c5e28/packages/modelence/src/auth/client/index.ts#L101)

Update the current user's profile.

## Example

```ts theme={null}
await updateProfile({ firstName: 'Atul', lastName: 'Yadav', avatarUrl: 'https://example.com/avatar.jpg', handle: 'atulyadav' });
```

## Parameters

| Parameter            | Type                                                                                             | Description                 |
| -------------------- | ------------------------------------------------------------------------------------------------ | --------------------------- |
| `options`            | \{ `avatarUrl?`: `string`; `firstName?`: `string`; `handle?`: `string`; `lastName?`: `string`; } | -                           |
| `options.avatarUrl?` | `string`                                                                                         | The avatar URL of the user. |
| `options.firstName?` | `string`                                                                                         | The first name of the user. |
| `options.handle?`    | `string`                                                                                         | The handle of the user.     |
| `options.lastName?`  | `string`                                                                                         | The last name of the user.  |

## Returns

`Promise`\<`null` | `User`>
