updateRecord
Partially modify a record by changing only fields present in data and preserving all others. Requires recordId; use setRecord to replace all fields.
Instructions
Partially update a record — only fields present in data are changed; all other existing fields are preserved. Use setRecord instead if you want to replace all fields. Requires recordId: retrieve it first with findRecords or getRecord if not already known.
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": {
"recordId": "<recordId>",
"label": "<label>",
"data": "<data>"
},
"name": "updateRecord"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | The updated (partial) record data | |
| label | Yes | Label for the record | |
| recordId | Yes | ID of the record to update | |
| transactionId | No | Optional transaction ID for atomic update |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| record | Yes | A RushDB record containing system fields and user-defined properties. | |
| message | Yes | ||
| success | Yes |