manage_tag
Manage Gramps tags with create, read, update, and delete operations. Use it to add, retrieve, modify, or remove lightweight labels attachable to any genealogy object.
Instructions
Create, read, update or delete Gramps Tag records. Writes: create, update, delete.
Tags are lightweight labels attachable to any object. action=get lists
tags (handle empty) or returns one by handle; action=create posts a Tag
JSON object (name required) in data; action=update PUTs data to
/tags/; action=delete removes it. To tag an object, reference the
tag handle in that object's tag_list.
Args: action: The operation, "get", "create", "update" or "delete". handle: Tag handle; required for get-one, update, delete. data: The Tag 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 |