manage_family
Create, read, update, or delete family records in Gramps Web. Manage parental links and child references while keeping related person records consistent.
Instructions
Create, read, update or delete Gramps Family records. Writes: create, update, delete.
action=get lists families (handle empty) or returns one family by
handle. action=create posts a full Family JSON object in data;
action=update PUTs data to /families/; action=delete removes
it. Family payload fields: gramps_id, father_handle, mother_handle,
child_ref_list, event_ref_list, attribute_list, media_list, note_list,
change, relationship, ... . Creating a family rewrites its parents' and
children's person records, so it requires edit + add permissions upstream.
Args: action: The operation, "get", "create", "update" or "delete". handle: Family handle (e.g. 'F0001'); required for get-one, update, delete. data: The Family 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 |