---
updatedAt: 2025-08-05T09:30:00.000Z
agentTools:
  projectIndex: https://dev.tapcart.com/llms.txt
---

# storage/update

Update a storage item 

#### Fields

### `key` • *string* <span class="required-tag">required</span>

##### This is the value you would like to add to your storage. This can also use dot notation ex.`user.age`

### `value` • *string*

##### This is the value of the what you would like to store

***

The storage/update action updates or stores a key-value pair in the app's local storage. This action functions identically to storage/add - it will create a new key-value pair if the key doesn't exist, or update the existing value if the key already exists.

The storage system supports dot notation for organizing data hierarchically (e.g., user.name, settings.theme).

```javascript App Studio - React.js
Tapcart.action("storage/update", {
  "key": "username",
  "value": "Eric Newname"
});
```