'tableau-api - Problem with changing tags which contains '.' - 404007: Resource Not Found

I tried to change tags in a workbook.

My tags are as following: my_tag.foo

I cannot change it because i'm getting: 404007: Resource Not Found.

NOTE: When i was trying to use code below with tags without a dots it worked. It only don't works for tags with dot.

# here i just use methods which allows me to get to the site, importing TSC
from login_to_client import get_auth, get_server
import tableauserverclient as TSC
# getting to the site
tableau_auth = get_auth(site)
server = get_server()
with server.auth.sign_in(tableau_auth):
    
    # getting list with all workbooks on the server
    all_workbooks , pagination_item = server.workbooks.get()
    
    # grab first workbook
    workbook = all_workbooks[0]
    workbook_tags = workbook.tags
    
    # logging info about tags
    myloger.info(workbook_tags)
    
    try:
        # i try to set tags to empty set
        workbook.tags = set()
        # updating workook
        server.workbooks.update(workbook)
        myloger.info('updating has been finished')
    except Exception as e:
        myloger.error(e)

This code works without any problem when there's no dot in the tag name.

The problem occurs when there's a dot.

logging messages:

MyLogger[9716] INFO {'my_tag.foo'}

MyLogger[9716] ERROR 
404007: Resource Not Found
Tag 'my_tag' could not be found.


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source