Edit record
edit_recordChanges fields of one existing record in a collection an app declares, as the person this call acts for. It succeeds only if the record is unchanged since the etag list_records returned. It replaces only the fields sent, and the previous values of those fields are not kept. A person changes only records they may edit. Returns the record. Field values are written by the app's users.
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>",
"id": "<id>",
"etag": "<etag>",
"fields": "<fields>"
},
"name": "edit_record"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | the record to change, as list_records gave it | |
| etag | Yes | the record's etag from list_records | |
| app_id | Yes | the app, as list_apps gave it | |
| fields | Yes | only the fields to change, as the collection declares them | |
| collection | Yes | a collection the app declares |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| record | Yes | the stored record |