manage_event
Create, read, update, or delete event records in Gramps Web genealogy data. Manage event details like dates, places, and citations directly through the API.
Instructions
Create, read, update or delete Gramps Event records. Writes: create, update, delete.
action=get lists events (handle empty) or returns one event by handle.
action=create posts a full Event JSON object in data; action=update
PUTs data to /events/; action=delete removes it. Event payload
fields: gramps_id, type, date, description, place, citations, notes,
attribute_list, media_list, change, ... . Events are typically referenced
by Person/Family event_ref_list entries.
Args: action: The operation, "get", "create", "update" or "delete". handle: Event handle; required for get-one, update, delete. data: The Event object for create/update (required for those). query: Optional dict of extra query-string parameters for reads. instance: Gramps Web base URL from get_instances; default = first.
Returns: dict: {"status", "url", "data"}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| query | No | ||
| action | Yes | ||
| handle | No | ||
| instance | No |