set_event
Create or update GEDCOM events or facts for an individual or family, including birth dates and occupations. This edits family-tree records in .ged files.
Instructions
Create or update an event/fact on an individual or family (e.g. set a birth date, add an occupation).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Individual (@I..@) or family (@F..@) id | |
| tag | Yes | Fact tag: BIRT, DEAT, BURI, CHR, OCCU, RESI, EVEN, CENS, EMIG, IMMI ... or MARR/DIV for families | |
| date | No | GEDCOM date, e.g. '12 MAR 1840', 'ABT 1845' | |
| file | No | GEDCOM file name (with or without .ged). Optional when only one file exists. | |
| type | No | TYPE sub-tag, used to describe EVEN/FACT facts | |
| index | No | Which fact with this tag to update (0 = first). Equal to the current count to add another. | |
| place | No | ||
| value | No | Attribute value (e.g. occupation text for OCCU) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Id of the record created or modified | |
| file | Yes | ||
| backup | No | Path of the .bak written before saving | |
| message | Yes |