Tasks creation using templates-api with custom fields

Currently we have an API for instantiating tasks from templates
https://developers.asana.com/reference/instantiatetask

The only custom field which is mentioned in the documentation is name, so basically we can create task with custom name as follows:

curl --request POST \
     --url https://app.asana.com/api/1.0/task_templates/120***********46/instantiateTask \
     --header 'accept: application/json' \
     --header 'authorization: Bearer  ***********************' \
     --header 'content-type: application/json' \
     --data '
{
  "data": {
    "name": "Test name"
  }
}
'

Is there any way to define custom description, source, priority etc?
Payload as below is not workin for instance, for custom description:

{
  "data": {
    "name": "Test name"
  }
}

Hi @Emil_Gadjzhiev ,

Welcome to the forum! I don’t believe that’s currently supported (as the description would already be set in the template). That said, calling the instantiateTask endpoint returns the newly created task (data.new_task.gid), so you could just call the updateTask endpoint asynchronously and make whatever description/field updates you want there.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.