update_record
Update fields on an existing farmOS record via PATCH, changing only the fields you provide; requires writes enabled.
Instructions
Update fields on an existing record (PATCH). Only the fields you pass change. Requires writes to be enabled.
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": {
"entity_type": "<entity_type>",
"bundle": "<bundle>",
"id": "<id>"
},
"name": "update_record"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Record UUID | |
| bundle | Yes | Bundle of the record | |
| attributes | No | Only the fields to change | |
| entity_type | Yes | One of: asset, log, plan, quantity, taxonomy_term, organization | |
| relationships | No | Relationships to replace (full replacement per relationship). Use null to clear a to-one relationship. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||