Tag
- class labstep.entities.tag.model.Tag(data, user)
Represents a Tag on Labstep.
To see all attributes of a tag run
print(my_tag)
Specific attributes can be accessed via dot notation like so…
print(my_tag.name) print(my_tag.id)
- edit(name=OPTIONAL, extraParams={})
Edit the name of an existing Tag.
- Parameters:
name (str) – The new name of the Tag.
- Returns:
An object representing the edited Tag.
- Return type:
Example
# Get all tags, since there is no function # to get one tag. tags = user.getTags() # Select the tag by using python index. tags[1].edit(name='A New Tag Name')
- delete()
Delete an existing tag.
- Parameters:
tag (obj) – The tag to delete.
- Returns:
An object representing the tag to delete.
- Return type:
tag