Add a project to a task
POST
/tasks/{task_gid}/addProject
Tasks
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 orsection that already contains it.
insert_before
, insert_after
, or section
should bespecified. Inserting into a section in an non-order-dependent way can be
done by specifying section, otherwise, to insert within a section in a
particular place, specify
insert_before
or insert_after
and a taskwithin the section to anchor the position of this task.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://app.asana.com/api/1.0/tasks//addProject' \
--header 'Content-Type: application/json' \
--data-raw '{
"data": {
"insert_after": "124816",
"insert_before": "432134",
"project": "13579",
"section": "987654"
}
}'
Response Response Example
200 - Example 1
{
"data": {}
}
Request
Path Params
task_gid
string
required
Body Params application/json
Responses
Modified at 2022-09-13 02:00:32