from dub import Dub
with Dub(
token="DUB_API_KEY",
) as d_client:
res = d_client.tags.create()
# Handle response
print(res){
"id": "<string>",
"name": "<string>",
"color": "red"
}Create a tag for the authenticated workspace.
from dub import Dub
with Dub(
token="DUB_API_KEY",
) as d_client:
res = d_client.tags.create()
# Handle response
print(res){
"id": "<string>",
"name": "<string>",
"color": "red"
}Default authentication mechanism
The name of the tag to create.
1 - 50The color of the tag. If not provided, a random color will be used from the list: red, yellow, green, blue, purple, brown.
red, yellow, green, blue, purple, brown, pink The name of the tag to create.
1Was this page helpful?