Query regarding adding subtasks through API

I’ve created a parent task within a project and am looking to add subtasks to it.

However, when running the JSON it only appears that the first subtask in a list I’ve created gets pushed through.

Do I have to do multiple subtasks through a batchrun or does Asana support multiple subtasks being created in one call? If so, would be greatly appreciated if someone could share an example code of multiple subtasks to get me started


Hi @gwion,

You’d have to do it in multiple calls, one per subtask.

You could use the batch API, but please note that order of execution is not guaranteed within one batch submission, so it’s theoretically possible the subtasks would get added in an order different from the one you want.


This topic was automatically closed after 6 days. New replies are no longer allowed.