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.
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 |