# Duplicating task templates when duplicating a project via API?

**URL:** <https://forum.asana.com/t/duplicating-task-templates-when-duplicating-a-project-via-api/126557>\
**Category:** API & Developers\
**Tags:** api, tasks, projects\
**Created:** [24 June 2021 16:19 UTC](https://forum.asana.com/t/duplicating-task-templates-when-duplicating-a-project-via-api/126557 "2021-06-24T16:19:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![FreshyJon](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/freshyjon/32/6475_2.png) [@FreshyJon](https://forum.asana.com/u/FreshyJon)\
**Post date:** [24 June 2021 16:19 UTC](https://forum.asana.com/t/duplicating-task-templates-when-duplicating-a-project-via-api/126557/1 "2021-06-24T16:19:19Z")

</div>

I’m utilizing the `duplicate` API call to copy a project. However, it doesn’t also copy the new “task templates” to the newly created project.

Here is some of the data I am telling it to include during the duplication. Does the API not yet have the option to include the task templates? When I Duplicate the project manually, within Asana itself, they come over fine. How do I get them to come over via the API?

```auto
var taskTitle = inputData.taskName;
var projectID = "123456";
var teamID = "9999";
let body = {
    "data": {
        "include": [
            "notes",
            "members",
            "task_notes",
            "task_subtasks",
            "task_attachments",
            "task_dependencies",
            "task_projects"
        ],
        // set the Project Name text value to be the this value from the above variable
        "name": taskTitle,
        // set the Team ID value to be the this value from the above variable
        "team": teamID
    }
};

```

---

<div class="post-metadata">

**Author:** ![Phil\_Seeman](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/phil_seeman/32/81525_2.png) [@Phil\_Seeman](https://forum.asana.com/u/Phil_Seeman)\
**Post date:** [24 June 2021 22:11 UTC](https://forum.asana.com/t/duplicating-task-templates-when-duplicating-a-project-via-api/126557/2 "2021-06-24T22:11:37Z")

</div>

> [@FreshyJon](#):
>
> Does the API not yet have the option to include the task templates?

It does not, sadly.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/system/32/276370_2.png) [@system](https://forum.asana.com/u/system)\
**Post date:** [30 May 2025 19:05 UTC](https://forum.asana.com/t/duplicating-task-templates-when-duplicating-a-project-via-api/126557/3 "2025-05-30T19:05:30Z")

</div>

Closed on 30 May 2025 19:05 UTC


