Update Record
update_recordReplace an existing record in a Pane collection, with optional optimistic locking to handle version conflicts.
Instructions
Update an existing row in a pane's record collection (replaces its data). Pass if_match with the row's current version for an optimistic-locked update — on a version mismatch the relay returns the current row so you can retry. Returns { record }.
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": {
"pane_id": "<pane_id>",
"collection": "<collection>",
"record_key": "<record_key>",
"data": "<data>"
},
"name": "update_record"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | The new record body (replaces the row's data). | |
| pane_id | Yes | The pane id. | |
| if_match | No | Optional optimistic-lock version. On mismatch the update is rejected with the current row in details.current. | |
| collection | Yes | The record collection name. | |
| record_key | Yes | The key of the record to update. |