manage_citation
Create, retrieve, update, or delete Gramps citation records to manage sources and evidence for genealogy data. Use actions get, create, update, or delete with citation handles and JSON payloads.
Instructions
Create, read, update or delete Gramps Citation records. Writes: create, update, delete.
action=get lists citations (handle empty) or returns one citation by
handle. action=create posts a full Citation JSON object in data;
action=update PUTs data to /citations/; action=delete removes
it. Citation payload fields: gramps_id, source_handle, date, page,
confidence, note_list, media_list, change, ... . Attach a citation to a
Person/Family/Event by adding its handle to that object's citation_list.
Args: action: The operation, "get", "create", "update" or "delete". handle: Citation handle; required for get-one, update, delete. data: The Citation 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 |