> For the complete documentation index, see [llms.txt](https://sdk.venly.io/sdk-reference/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sdk.venly.io/sdk-reference/ts-js-v3/function-references/wallet/user/updateuserreference.md). Agents can also search and read this documentation through its [MCP server](https://sdk.venly.io/sdk-reference/~gitbook/mcp).

# updateUserReference

### Description

Updates the reference identifier for a specific user based on the user `UUID`. The reference is a custom identifier that can be used to link users to external systems.

{% code overflow="wrap" %}

```javascript
public updateUserReference(userId: string, reqParams: VyUpdateUserReferenceRequest) : VyPromise<VyUserReferenceDto>
```

{% endcode %}

{% tabs %}
{% tab title="Details" %}
**Parameters**

| userId    | string                                                                                                                               | The user \`UUID\` whose \*\*reference\*\* you want to update. |
| --------- | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------- |
| reqParams | [VyUpdateUserReferenceRequest](https://sdk.venly.io/sdk-reference/ts-js-v3/object-references/wallet/vyupdateuserreferencerequest.md) | Request data for the operation                                |

**Returns**

VyPromise<[VyUserReferenceDto](https://sdk.venly.io/sdk-reference/ts-js-v3/object-references/wallet/vyuserreferencedto.md)>\
User's reference updated successfully.
{% endtab %}
{% endtabs %}
