update_object_fields
Set scalar fields on any Gramps object such as places, notes, or repositories to correct simple values while leaving structural reference lists untouched.
Instructions
Set scalar fields on any object -- the escape hatch for places, notes, repositories and the rest.
Only scalar fields are settable. Structural lists (citation_list, event_ref_list, media_list, ...) are refused on purpose: replacing one wholesale is exactly how references get silently dropped. Each has its own tool -- cite_object, detach_object, tag_object, attach_media.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | Handle or gramps_id. | |
| fields | Yes | Scalar fields to set, e.g. {'name': 'Cedar Flat, Brannock, Ohio, USA'} on a place, or {'text': '...'} on a note. | |
| object_type | Yes | Type of object to edit. | |
| allow_new_type | No | Accept a type that is neither a Gramps standard type nor one of the tree's custom types, creating it as a new custom type. Only when meant: a near-miss is refused with the closest names. |