manage_repository
Create, read, update, or delete Gramps repository records. Use it to add, fetch, modify, or remove repository data in your genealogy research.
Instructions
Create, read, update or delete Gramps Repository records. Writes: create, update, delete.
action=get lists repositories (handle empty) or returns one by handle.
action=create posts a full Repository JSON object in data;
action=update PUTs data to /repositories/; action=delete
removes it. Repository payload fields: gramps_id, type, name, address_list,
url_list, note_list, change, ... . Sources link to a repository through
their reporef_list entry.
Args: action: The operation, "get", "create", "update" or "delete". handle: Repository handle; required for get-one, update, delete. data: The Repository 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 |