Hi all, I’m trying to do a simple action of creating a subtask and set it as Impediment. I’m using python ASANA API. My code is below as the error returned:
client.tasks.add_subtask(task[‘id’],{‘due_on’:due,‘name’:‘Sub task 5’,‘assignee’:user[‘id’],‘assignee_status’:‘later’,‘memberships’:[{‘project’:{‘id’:project[‘id’],‘name’:project[‘name’]},‘section’:{‘id’:section[‘id’],‘name’:section[‘name’]}}]})
InvalidRequestError: Invalid Request: memberships: [0]: project: Not a valid ID type: object
All vars are set in my environment. How to solve this issue?
Thank you.