anytype.Tag
Bases: APIWrapper
Source code in anytype/tag.py
delete_tag()
Deletes a tag by its ID.
Returns:
| Name | Type | Description |
|---|---|---|
bool |
None
|
True if the tag was successfully deleted, False otherwise. |
Source code in anytype/tag.py
update_tag(name, color='red')
Updates the name of an existing tag. Parameters: tag_id (str): The ID of the tag to update. name (str): The new name for the tag. Returns: A Tag instance representing the updated tag. Raises: Raises an error if the request to the API fails.