Search code examples
asana

Move Asana tasks from section to section via API


How do I move a Task from one Section to Another via the API? I see there is an insert_after or insert_before parameter - can this be used during an update?


Solution

  • If you do use the ID of the section's task for insert_after parameter to POST /tasks/:id/addProjects' it will move the task to be directly after the section. Alternatively, you could do aninsert_before` of the following section, which would put it at the end.

    We have some changes to better support sections in the API coming in the future, but for now this is the best workaround.