post https://{teamSlug}.api.morphdb.io/v0/data-api/record/update
Updates multiple records. Note that you create a database and a table in Widget Dashboard in advance.
Put the fields to update and their values in values field. To filter the records to be updated, put the conditions in filter property.
For more information, see Filter & Sort section.
ex. ) sample table
| id | name | product_type | price |
|---|---|---|---|
| 1 | apple | fruits | 100 |
| 2 | grape | fruits | 200 |
| 3 | chocolate | snacks | 400 |
// request
{
"fixedValue": [],
"values": [
{
"key": "name",
"value": "banana",
}
],
"filter": {
"and": [
{
"key": "id",
"opearator": "equal",
"value": 1
}
]
}
}