update_attribute
Set or remove one attribute on a Gramps object in place while preserving its citations, notes, and privacy. Use it to change or clear a specific attribute value.
Instructions
Set or remove ONE attribute on an object in place, keeping its citations, notes and privacy.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name (type) of the attribute to change, e.g. 'Occupation'. | |
| match | No | Case-insensitive part of the current value, to pick one of several attributes of this name. Matching none, or several that differ, changes nothing and lists them. | |
| value | No | Its new value. Omit when removing it. | |
| remove | No | Remove the attribute. Its citations stay in the tree and are named. | |
| target | Yes | Handle or gramps_id of the object. | |
| object_type | Yes | Type of the object: 'person', 'event', 'family', 'media', 'source', 'citation'. |