Update Row
update_rowUpdate an existing row in a v2 app's collection, replacing its data. Gated by the collection's update role list when it declares one, and by its write list otherwise, so a collection that scopes updates to the row's creator refuses an edit on someone else's row. Pass if_match with the row's current version for an optimistic-locked update; on a version mismatch the relay returns the current row, which is what a retry needs. Returns { row }.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"app_id": "<app_id>",
"collection": "<collection>",
"key": "<key>",
"data": "<data>"
},
"name": "update_row"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | The key of the row to update. | |
| data | Yes | The new row body (replaces the row's data) - any JSON value valid against the collection's row schema. | |
| app_id | Yes | The app id. | |
| if_match | No | Optional optimistic-lock version. On mismatch the update is rejected with the current row in details.current. | |
| collection | Yes | The collection name. |