update_record
Replace a record's document with a new revision, normally published immediately (full-document replace, not a partial patch). data must match the collection schema (see describe_resource). In a collection with screening, the new revision may become readable only after screening (published: false, delivery: "pending"). Requires the UPDATE permission on this API.
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": {
"collection": "<collection>",
"record_id": "<record_id>",
"data": "<data>"
},
"name": "update_record"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Full replacement document matching the schema. | |
| parents | No | Parent placeholders for nested collection resource_ids. | |
| record_id | Yes | resource_key of the record to replace. | |
| collection | Yes | Collection resource_id from discover_resources. | |
| expected_revision | No | Optional. Apply the write only if the record's current revision is still this one -- pass the `_sys.revision` value from the record you read. Prevents silently overwriting another writer's update; returns precondition_failed if the record moved on. |