post https://app.asana.com/api/1.0/tasks//subtasks
Creates a new subtask and adds it to the parent task. Returns the full record for the newly created subtask.
Responses
Creates a new subtask and adds it to the parent task. Returns the full record for the newly created subtask.
xxxxxxxxxx
curl --request POST \
--url https://app.asana.com/api/1.0/tasks/task_gid/subtasks \
--header 'accept: application/json' \
--header 'content-type: application/json'
xxxxxxxxxx
211}
{
"data": {
"gid": "12345",
"resource_type": "task",
"name": "Bug Task",
"resource_subtype": "default_task",
"created_by": {
"gid": "1111",
"resource_type": "user"
},
"approval_status": "pending",
"assignee_status": "upcoming",
"completed": false,
"completed_at": "2012-02-22T02:06:58.147Z",
"completed_by": {
"gid": "12345",
"resource_type": "user",
"name": "Greg Sanchez"
},
"created_at": "2012-02-22T02:06:58.147Z",
"dependencies": [
{
"gid": "12345",
"resource_type": "task"
}
],
"dependents": [
{
"gid": "12345",
"resource_type": "task"
}
],