back to query /// home
Modify existing rows in a table.
{
"action": "update",
"table": "items",
"data": {
"price": 29.99,
"status": "active"
},
"filter": {
"column": "id",
"op": "=",
"value": 42
}
}
| Field | Type | Required | Notes |
|---|---|---|---|
action |
string | yes | must be "update" |
table |
string | yes | target table |
data |
object | yes | column value pairs to update |
where |
object | yes* | simple key value filter |
filter |
object | yes* | structured filter |
*at least one of where or filter is required. you cant do an unfiltered update.
{
"success": true,
"rows_affected": 1
}
warning is included if json derulo stripped for youlast_modified_by auto set to your user IDlast_modified_at is handled by sqls ON UPDATE triggerrwo you can only update rows where pinned_to equals your user ID uness you have rwa. same deal with rwg for group scoping