0

I am trying to add a task on a particular section of a project using Asana API. I have tried the membership object with project and section id specified in the following doc.

Asana api doc

But it's throwing 404 when I run the api call. What am I doing wrong? Please take a look in the json I am using.

    "projects": [ "121212121" ],
    "memberships": [
        {
           "project": {
             "id": "121212121",
             "gid": "121212121",
             "name": "test"
           },
           "section": {
             "id": "090909090",
             "gid": "090909090",
             "name": "test"
           }
        }
    ]

I have tried this JSON too

    "projects": [ "121212121" ],
    "memberships": [{
        "project": "121212121",
        "section" : "090909090"
    }]

However I am unable to see this option memberships in the following documentation.

Asana developer doc

Do I have to add the task to the project section after creating it using separate API call?

D-user
  • 119
  • 1
  • 2
  • 11

1 Answers1

0

I had a similar issues with the create task method in the client library. THe memberships should look like the following:

'memberships':[       
  {
   'project': guid (as a string),
   'section': guid (as a string)
  }     
]