I can create a task like this
…api/1.0/tasks/projects=111111111111¬es=Something about the task&name=Name of task
But I cant figure out what the syntax should be for adding memberships
I would imagine it might be something like this
…api/1.0/tasks/memberships=[Projects:2222222,Sections:33333333]&projects=111111111111¬es=Something about the task&name=Name of task
Can someone give me an example of what it would look like? Basically as it would appear in a URL bar.
I already know I can create a task then add it to a section after, but why do two steps if I can do it in one.
You’re not going to be able to do this via URL query parameters (nor should you try). Creating a task is a POST request and the input parameters should be sent in the HttpRequest’s Body.
I haven’t tried this exact code snippet but I believe this is the syntax you’ll be wanting to use in the Body: