I’m trying to update the task description when instantiating a task with a task template, but it doesn’t seem to work. I am now thinking that I need to update the task directly with it’s gid.
Pointing me in the right direction would be appreciated:
def dup_template():
url = f"https://app.asana.com/api/1.0/task_templates/{TASK_TEMPLATE_ID}/instantiateTask"
headers = {
"accept": "application/json",
"content-type": "application/json",
"authorization": f"Bearer {AUTHORIZATION_CODE}"
}
data = {
"data": {
"template": {'name': "Sample",
"description": "LINK",
"html_description": ",<body><strong>LINK</strong></body>"
}
}
}
response = requests.post(url, headers=headers, json=data)
print(response.json())
dup_template()