update_person
Edit a person's gender, primary name, or privacy flag in Gramps. Replacing the primary name keeps the old one as an alternate so its record link is not lost.
Instructions
Edit a person's gender, primary name, or privacy flag.
Replacing the primary name preserves the old one as an 'Also Known As': a name in the tree came from some record, and dropping it loses the link to whatever document used it. To add a name without replacing the primary one, use add_alternate_name.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New PRIMARY name. The current primary name is kept as an alternate rather than discarded, unless keep_old_as_alternate is False. | |
| gender | No | female, male, or unknown. | |
| person | Yes | Person handle or gramps_id (e.g. 'I0001'). | |
| reason | No | Why the old form is not kept. Required with keep_old_as_alternate=False. | |
| private | No | Gramps private flag. | |
| keep_old_as_alternate | No | False only to fix a data-entry error -- a name split wrongly between given and surname, a typo no record contains -- where keeping the old form would invent a variant. The name is then corrected in place, keeping its citations, and reason is recorded in a note on the person. |