update_object_fields
Set scalar fields on any Gramps object, such as a place name or note text. Use it for simple edits on places, notes, and repositories; structural lists need dedicated tools.
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. |