update_event
Edit an existing Gramps event in place to correct its type, date, place, or description; only supplied fields change while IDs, citations, notes, media, and linked people stay intact.
Instructions
Edit an existing event in place: its type, date, place or description.
Only what you pass changes. The event keeps its id, citations, notes, media and every person sharing it, so correct a wrong type or an unsupported place here rather than replacing the event. Citations: cite_event.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | New date, Gramps style: '1899', '12 JAN 1899', 'ABT 1900', 'BEF 1950'; 'BET 1898 AND 1901' happened once within the range; 'FROM 4 MAY 1864 TO 16 SEP 1864' lasted the whole span; 'FROM 1880' or 'TO 1890' is open at one end. Omit to leave unchanged. | |
| event | Yes | Event handle or gramps_id (e.g. 'E0007'). | |
| place | No | New place: existing handle/gramps_id, exact title, or exact unique name — created only if nothing matches. Omit to leave unchanged. | |
| clear_date | No | Remove the event's date. | |
| event_type | No | New event type, e.g. 'Census', 'Visit'. Must already be a standard or custom type in the tree (list_object_types) unless allow_new_type is set. Omit to leave unchanged. | |
| clear_place | No | Remove the event's place, e.g. one no source states. An empty place string is refused rather than read as this. | |
| description | No | New free-text description. Omit to leave unchanged. | |
| allow_new_type | No | Accept an event_type the tree does not have yet, creating it as a custom type. Only for a deliberate new type, never a typo. |