Hello, fellas!
How create task in a session, with membership I guess, via API?
When I try creating via API i got this error:
Exception: Request failed for https://app.asana.com/api/1.0/tasks returned code 400. Truncated server response: {"errors":[{"message":"memberships: [0]: project: Missing required field","help":"For more information on API status codes and how to handle them, ... (use muteHttpExceptions option to examine full response)
(Yeah, I’m trying via Google Script)
And getting the task (using: ``), I got this response:
{ "data": { "id": 464905951759477, "assignee": null, "assignee_status": "upcoming", "completed": false, "completed_at": null, "created_at": "2017-10-27T17:54:24.723Z", "due_at": null, "due_on": null, "collaborators": [ { "id": 351591353269822 } ], "hearted": false, "hearts": [], "memberships": [ {} ], "modified_at": "2017-10-27T17:54:24.879Z", "name": "test", "notes": "", "num_hearts": 0, "parent": null, "projects": [ { "id": 356330895638626 } ], "workspace": { "id": 12905399818656 } } }
→ important part: Empty membership (“memberships”: [{}],")
So, what I’m doing wrong? The API or the documentation is wrong?