---
id: update
title: "Modify data: update()"
slug: update
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
Performs an UPDATE on the table.
```js
const { data, error } = await supabase
.from('cities')
.update({ name: 'Middle Earth' })
.match({ name: 'Auckland' })
```
```py
# Not yet implemented
```
## Parameters
-
values
required
Partial
The values to update.
-
__namedParameters
required
object
No description provided.
## Notes
- `update()` should always be combined with [Filters](/docs/client/using-filters) to target the item(s) you wish to update.
## Examples
### Updating your data
```js
const { data, error } = await supabase
.from('cities')
.update({ name: 'Middle Earth' })
.match({ name: 'Auckland' })
```
```py
# Not yet implemented
```