Delete a Project Group#
Let's assume we want to delete the project group from the create project group recipe and the update project group recipe, which had the project group id 6821f8618f08de9a850d65ce
.
This is what the pyticktick
code would look like:
from pyticktick import Client
client = Client()
resp = client.post_project_group_v2(data={"delete": ["6821f8618f08de9a850d65ce"]})
This will not return anything of value, just an empty BatchRespV2
object.
from pyticktick import Client
from pyticktick.models.v2 import PostBatchProjectGroupV2
resp = client.post_project_group_v2(
data=PostBatchProjectGroupV2(delete=["6821f8618f08de9a850d65ce"]),
)
This will not return anything of value, just an empty BatchRespV2
object.