Skip to content

Rename a Tag#

Let's assume we want to rename the tag test_tag from the create tag recipe. We now want it to have the name updated_test_tag.

This is what the renaming would look like in the TickTick app:

This is what the pyticktick equivalent would look like:

import json
from pyticktick import Client

client = Client()
resp = client.put_rename_tag_v2(data={"name": "test_tag", "new_name": "updated_test_tag"})

will not return anything if successful.

import json
from pyticktick import Client
from pyticktick.models.v2 import RenameTagV2

client = Client()
client.put_rename_tag_v2(
    data=RenameTagV2(
        name="test_tag",
        new_name="updated_test_tag",
    ),
)

This will not return anything if successful.

Here is the end result in the TickTick app: