---
title: Legacy attribute function
slug: data-platform/docs/websdk-legacy-attribute-function
docTags: 
createdAt: 2026-08-10T12:05:17.000Z
---

:::hint{type="info"}
**Note**
This function is accepted for updating customer records where you do not want to include the VUID (cookie id) automatically. Otherwise, see [Customers](docId\:kJQOKwTiRoXN6KRiV0sb9) function for updated functionality.
:::

## Legacy attribute function example

```javascript
zaius.entity("customer", {
	email: "johnny.zaius@zaius.com",
	first_name: "Johnny",
	last_name: "Zaius",
	gender: "M"
	// any custom fields you have created can be added here
});
```
