post
https://app.asana.com/api/1.0/tasks//addProject
Required scope: tasks:write
Adds the task to the specified project, in the optional location specified. If no location arguments are given, the task will be added to the end of the project.
addProject can also be used to reorder a task within a project or
section that already contains it.
Positioning the task:
- Use
insert_beforeorinsert_afterwith a task ID to position relative to another task - Use
sectionalone to add the task to the end of a section - Use
sectionwithinsert_after: nullto add to the beginning of a section - Use
sectionwithinsert_before: nullto add to the end of a section - Use
sectionwithinsert_beforeorinsert_after(non-null) to position relative to a task within that section. The anchor task must be in the specified section.
At most one of insert_before or insert_after should be specified (both cannot be used together).
A task can have at most 20 projects multi-homed to it.
Returns an empty data block.