manage_source
Create, read, update, or delete Gramps Source records. Use action and handle to get, create, update, or delete source data, including citations via related tools.
Instructions
Create, read, update or delete Gramps Source records. Writes: create, update, delete.
action=get lists sources (handle empty) or returns one source by
handle. action=create posts a full Source JSON object in data;
action=update PUTs data to /sources/; action=delete removes
it. Source payload fields: gramps_id, title, author, pubinfo, abbrev,
reporef_list, media_list, note_list, change, ... . Citations of a source
are managed with manage_citation.
Args: action: The operation, "get", "create", "update" or "delete". handle: Source handle; required for get-one, update, delete. data: The Source 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 |