# A new API for Project Templates

**URL:** <https://forum.asana.com/t/a-new-api-for-project-templates/156432>\
**Category:** Platform News\
**Created:** [8 March 2022 02:05 UTC](https://forum.asana.com/t/a-new-api-for-project-templates/156432 "2022-03-08T02:05:32Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrew-asana](https://luna1.co/8d76cd.png) [@Andrew-asana](https://forum.asana.com/u/Andrew-asana)\
**Post date:** [8 March 2022 02:05 UTC](https://forum.asana.com/t/a-new-api-for-project-templates/156432/1 "2022-03-08T02:05:32Z")

</div>

Hi everyone,

Today we launched a new set of API endpoints for apps that interact with project templates in Asana. With this launch, we are completely reworking how templates are represented within Asana, which will allow us to continue investing in [making our users’ cross-functional workflows seamless](https://blog.asana.com/2022/02/simplify-cross-team-flow/).

In addition, this change starts a 6-month deprecation period for the [opt-in](https://developers.asana.com/docs/input-output-options) is\_template field included in [the](https://developers.asana.com/docs/project)[Project](https://developers.asana.com/docs/project)[schema](https://developers.asana.com/docs/project), which has been the primary programmatic method for apps to interact with project templates until now.

If your app relies on the `is_template` field, please read on carefully for changes that may impact you.

**Background**

Today’s API launch comes ahead of the GA rollout of Asana’s _new_ Project Templates. Migrating an existing feature to a new representation creates a number of developer challenges.

Previously, Asana project templates were simply projects with the `is_template` flag set, and API consumers instantiated these templates using the standard `Project` duplication API. In the new system, project templates are a dedicated resource in our data model, and instantiation takes place through a template instantiation endpoint. Furthermore, we are allowing both template systems to coexist before we complete the deprecation of the legacy template backend and force a full migration to the new system in August.

To mitigate the complexity of these changes for our third party developer community, today we’ve launched a new, dedicated Project Templates API. This API seamlessly handles both existing project templates and the new Project Template objects that we are releasing in April. As the new API fully supports all project templates in Asana today, you can migrate your application to the new endpoints at any time. Once you complete your migration, your application will continue working correctly through all of the upcoming template releases, migrations, and deprecations.

**API Changes**

The following changes are included in today’s API launch:

- A new endpoint for [retrieving a specific project template](https://developers.asana.com/docs/get-a-project-template).

- A new endpoint for [retrieving all project templates belonging to a workspace](https://developers.asana.com/docs/get-multiple-project-templates).

- A new endpoint for [retrieving all project templates belonging to a team](https://developers.asana.com/docs/get-a-teams-project-templates).

- A new endpoint for [instantiating a project from a template](https://developers.asana.com/docs/instantiate-a-project-from-a-project-template).

- A new field (`created_from_template`) in [Project](https://developers.asana.com/docs/project) objects indicating what template a project was instantiated from, if any.

- New [webhook events](https://developers.asana.com/docs/webhooks) for changes made to project template resources.

- Support for project templates in the [typeahead endpoint](https://developers.asana.com/docs/get-objects-via-typeahead) and the [user’s favorites endpoint](https://developers.asana.com/docs/get-a-users-favorites).

**Deprecation Timeline**

As mentioned above, along with today’s API changes, we are deprecating certain API support for project-based templates, namely the `is_template` field. The deprecation period will last 6 months; we plan to remove the `is_template` flag from the API around August.

Here are the other important dates along the way:

- **April** : New project templates will launch for all Asana users. After this date, any new project template created by a user on a team or workspace will be backed by a `ProjectTemplate` resource. At the same time, project-based templates that were previously created will continue to be accessible to these users until we begin migrating them to the new data model (see below).

- **Late May / Early July** : We will begin migrating project-based templates to the new data model for all users. The migration process will take a few weeks to complete. During this time, any project-based template that is migrated will continue to exist and remain accessible as a regular project, with that project being automatically archived following migration. Note that between April and when we complete the migration process, the two types of projects templates will coexist (in both the API and the Asana UI), and the new `GET` endpoints listed above will return both.

- **August** : The deprecation period will end and the `is_template` field will be removed from the API, both as a request parameter and an object field in responses. Beyond this date, attempting to read or write this field via the API will result in an error. Note that apps will still be able to read and write the `is_template` field post-migration until August, but reads will return a “snapshot” of the project-based template at the point of migration, and writes will be invisible to end users.

**Migrating Apps**

In April, Asana users will begin creating templates that can no longer be queried through the old `is_template` method. In August, all templates will be migrated to the new template backend. If your app queries, mutates, or creates projects from templates, you’ll need to modify your app logic to make use of the new endpoints launching.

Your migration path will depend on the use case(s) your app implements:

| If your app needs to … | And it used to … | It should now instead … |
| --- | --- | --- |
| List all project templates belonging to a workspace | Call `GET /projects` with `is_template` query parameter set to `true` | Call `GET /project_templates` |
| List all project templates belonging to a team | Call `GET /team/{team_gid}/projects` with `is_template` query parameter set to `true` | Call `GET /team/{team_gid}/project_templates` |
| Retrieve a specific project template by id | Call `GET /projects/{project_gid}` with `is_template` query parameter set to `true` | Call `GET /project_templates/{project_template_gid}` |
| Create a new project from a template | Call `POST /projects/{project_gid}/duplicate` on a templatized project | Call `POST /project_templates/{project_template_gid}/instantiateProject` |
| Create a new project template | Call `POST /projects` with `is_template` property set to `true` in the request body | Create the project as before (except for the `is_template` property) and then call [POST /projects/{project\_gid}/saveAsTemplate](https://developers.asana.com/docs/create-a-project-template-from-a-project) with the id of the newly created project. Note that this endpoint creates new template objects that won’t be visible in the Asana UI until April. |

Any templates created past April will not be visible to apps using the old endpoints. You may want to perform this migration sooner if you expect a user of your app to start using new project templates functionality (given the timelines above), and you’d like to support this usage in your app.

Over the coming months, we’ll be adding new capabilities to project templates, so please watch this space for how you can take advantage of these new capabilities and unlock new use cases in your apps. And, as always, if you have any feedback or questions about the changes included in today’s launch, or how they might impact you, feel free to drop us a line below.

---

<div class="post-metadata">

**Author:** ![Andrew-asana](https://luna1.co/8d76cd.png) [@Andrew-asana](https://forum.asana.com/u/Andrew-asana)\
**Post date:** [8 March 2022 02:05 UTC](https://forum.asana.com/t/a-new-api-for-project-templates/156432/2 "2022-03-08T02:05:48Z")

</div>

Pinned on 8 March 2022 02:05 UTC



---

<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:** [8 March 2022 03:32 UTC](https://forum.asana.com/t/a-new-api-for-project-templates/156432/3 "2022-03-08T03:32:44Z")

</div>

Hi @Andrew-asana,

One other new endpoint you might want to add to the API Changes bullet list is the ability to create a project template from a project ([Create a project template from a project](https://developers.asana.com/docs/create-a-project-template-from-a-project)). It is mentioned in the migration section but not in the changes list, so some folks might miss it.

---

<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:** [8 March 2022 03:37 UTC](https://forum.asana.com/t/a-new-api-for-project-templates/156432/4 "2022-03-08T03:37:19Z")

</div>

> [@Andrew-asana](#):
>
> and the new `GET` endpoints listed above will return both.

One question, @Andrew-asana: during this period when both PT 1.0 and 2.0 templates will be returned intermingled in a GET list, how should we differentiate between them?

---

<div class="post-metadata">

**Author:** ![anon12228830](https://luna1.co/8d76cd.png) [@anon12228830](https://forum.asana.com/u/anon12228830)\
**Post date:** [8 March 2022 18:10 UTC](https://forum.asana.com/t/a-new-api-for-project-templates/156432/5 "2022-03-08T18:10:36Z")

</div>

You shouldn’t need to differentiate between them, the template APIs work the same with both. We built it this way because users can convert their legacy project templates to the new system at any time, and we didn’t want our developers to have to react to these conversions.

---

<div class="post-metadata">

**Author:** ![Tony\_Anh\_Nguyen](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/tony_anh_nguyen/32/100909_2.png) [@Tony\_Anh\_Nguyen](https://forum.asana.com/u/Tony_Anh_Nguyen)\
**Post date:** [27 April 2022 00:04 UTC](https://forum.asana.com/t/a-new-api-for-project-templates/156432/6 "2022-04-27T00:04:44Z")

</div>

Hello!

So my application relies on getting all the tasks under a project which are templates.  
With this change, is there any option to be able to get all tasks in a project template?

---

<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:** [27 April 2022 02:17 UTC](https://forum.asana.com/t/a-new-api-for-project-templates/156432/7 "2022-04-27T02:17:27Z")

</div>

Hi @Tony_Anh_Nguyen,

No, not currently. Asana will likely be adding CRUD capability to the new Project Templates 2.0 but it’s not there now.

(cc: @Kem_Ozbek, here’s another vote for CRUD in PT 2.0)

---

<div class="post-metadata">

**Author:** ![Tony\_Anh\_Nguyen](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/tony_anh_nguyen/32/100909_2.png) [@Tony\_Anh\_Nguyen](https://forum.asana.com/u/Tony_Anh_Nguyen)\
**Post date:** [27 April 2022 03:17 UTC](https://forum.asana.com/t/a-new-api-for-project-templates/156432/8 "2022-04-27T03:17:55Z")

</div>

Hi @Phil_Seeman,

Any chance we know when that might be added?

---

<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:** [27 April 2022 05:55 UTC](https://forum.asana.com/t/a-new-api-for-project-templates/156432/9 "2022-04-27T05:55:30Z")

</div>

No, sorry, @Tony_Anh_Nguyen, I don’t have any info on timing.

---

<div class="post-metadata">

**Author:** ![anon18678542](https://luna1.co/8d76cd.png) [@anon18678542](https://forum.asana.com/u/anon18678542)\
**Post date:** [6 May 2022 01:30 UTC](https://forum.asana.com/t/a-new-api-for-project-templates/156432/10 "2022-05-06T01:30:59Z")

</div>

Hi everyone! I began the work to migrate my application to the new endpoints, but quickly ran into a roadblock because the latest versions of the Asana Node.js SDK are not being published to npm. Could you all reach out to the maintainers of the Node.js SDK internally to get this fixed up?

The latest release on GitHub is [v0.18.3](https://github.com/Asana/node-asana/releases) (released on March 4, 2022) which adds support for the project templates API, but the latest release pushed to npm is [v0.18.6](https://www.npmjs.com/package/asana) (released on Feb 26, **2021** ).

I’m bringing it up here because there is a GitHub issue for this, but it hasn’t seen any activity from the maintainers.

---

<div class="post-metadata">

**Author:** ![anon18678542](https://luna1.co/8d76cd.png) [@anon18678542](https://forum.asana.com/u/anon18678542)\
**Post date:** [6 May 2022 01:32 UTC](https://forum.asana.com/t/a-new-api-for-project-templates/156432/11 "2022-05-06T01:32:52Z")

</div>

I looked through the commit log and I think they deploys broke because Travis CI stopped running jobs on [travis-ci.org](http://travis-ci.org). If that is indeed the reason, it should be a pretty easy fix to move the repository over to [travis-ci.com](http://travis-ci.com) and re-run the build. Happy to help with that process if needed 😃

---

<div class="post-metadata">

**Author:** ![Bastien\_Siebman](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/bastien_siebman/32/172354_2.png) [@Bastien\_Siebman](https://forum.asana.com/u/Bastien_Siebman)\
**Post date:** [12 May 2022 11:54 UTC](https://forum.asana.com/t/a-new-api-for-project-templates/156432/12 "2022-05-12T11:54:40Z")

</div>

> [@Andrew-asana](#):
>
> **Late May / Early July** : We will begin migrating project-based templates to the new data model for all users. The migration process will take a few weeks to complete

It is probably too late but templates v2 do not seem ready for our clients and us. They are lacking some features like multi-select of tasks, define default sort or filter, define/edit dashboard… am I missing something or did all of this will disappear slowly with no fix in sight?

Has someone compiled a list of features that will disappear? Otherwise I will.

cc @Phil_Seeman

---

<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:** [12 May 2022 14:58 UTC](https://forum.asana.com/t/a-new-api-for-project-templates/156432/13 "2022-05-12T14:58:08Z")

</div>

> [@Bastien\_Siebman](#):
>
> Has someone compiled a list of features that will disappear? Otherwise I will.

I don’t know of a comprehensive list in one post. There is a bunch of discussion about missing features here: [Say Hello to Project Templates 2.0!](https://forum.asana.com/t/say-hello-to-project-templates-2-0/160152)

That thread is probably the best place for further discussion on PT 2.0, and for such a list.

---

<div class="post-metadata">

**Author:** ![Abby\_Watson1](https://luna1.co/8d76cd.png) [@Abby\_Watson1](https://forum.asana.com/u/Abby_Watson1)\
**Post date:** [23 May 2022 20:54 UTC](https://forum.asana.com/t/a-new-api-for-project-templates/156432/14 "2022-05-23T20:54:05Z")

</div>

I believe this update is affecting my Asana for Salesforce integration. The Asana for Salesforce app is no longer recognizing any of my custom templates that I have created in Asana, and therefore will not let me automatically create a project in Asana when an Opportunity is initiated in Salesforce (which is like the biggest feature of the integration).

Is anyone else having this issue? Anyone with a solution?

---

<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 May 2022 02:05 UTC](https://forum.asana.com/t/a-new-api-for-project-templates/156432/15 "2022-05-24T02:05:33Z")

</div>

@Abby_Watson1,

I don’t have any first-hand experience with the Salesforce integration, but I know when Asana released PT 2.0, they said the Salesforce integration had been updated to handle the new templates. So I’d recommend using the #Report a Bug forum area to file a bug report on this.

---

<div class="post-metadata">

**Author:** ![Abby\_Watson1](https://luna1.co/8d76cd.png) [@Abby\_Watson1](https://forum.asana.com/u/Abby_Watson1)\
**Post date:** [24 May 2022 12:51 UTC](https://forum.asana.com/t/a-new-api-for-project-templates/156432/16 "2022-05-24T12:51:26Z")

</div>

Thanks Phil! Asana support requested yesterday that I uninstall and reinstall the integration using a new link they sent me via email. Unfortunately, the link they sent me was for the same version of the integration that I was already using, and so the problem persisted.

I will take your advise and also post this issue in the #Report a Bug forum.

Hopefully will have a solution soon!

---

<div class="post-metadata">

**Author:** ![anon7024508](https://luna1.co/8d76cd.png) [@anon7024508](https://forum.asana.com/u/anon7024508)\
**Post date:** [19 July 2022 07:01 UTC](https://forum.asana.com/t/a-new-api-for-project-templates/156432/19 "2022-07-19T07:01:07Z")

</div>

I’m am trying to create a new project from a template in Asana using the API. I am consistently getting a error relating to the ‘requested date’ field.

Any thoughts on what I am doing wrong?

 ![Screen Shot 2022-07-19 at 3.00.13 pm](https://us1.discourse-cdn.com/asana/original/3X/5/f/5fa4aef5f1374ad0117769646e159274f55f54a9.jpeg)

---

<div class="post-metadata">

**Author:** ![Bastien\_Siebman](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/bastien_siebman/32/172354_2.png) [@Bastien\_Siebman](https://forum.asana.com/u/Bastien_Siebman)\
**Post date:** [19 July 2022 08:01 UTC](https://forum.asana.com/t/a-new-api-for-project-templates/156432/20 "2022-07-19T08:01:43Z")

</div>

You are passing a field without a value, instead of emptying the field in Postman, untick the box in front of the field 🙂 That should do the trick.

---

<div class="post-metadata">

**Author:** ![anon7024508](https://luna1.co/8d76cd.png) [@anon7024508](https://forum.asana.com/u/anon7024508)\
**Post date:** [20 July 2022 06:10 UTC](https://forum.asana.com/t/a-new-api-for-project-templates/156432/21 "2022-07-20T06:10:22Z")

</div>

Thankyou for your fast response Bastien, Unticking the box does not seem to make a difference here. The only way I can get the API to execute successfully is to remove the due dates in the project template.

Here is a screen recording of me demonstrating that the API works when the due dates are removed from the project template. When the dates are in the project template the API fails.  
[https://vimeo.com/731621655](https://vimeo.com/731621655)

---

<div class="post-metadata">

**Author:** ![Bastien\_Siebman](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/bastien_siebman/32/172354_2.png) [@Bastien\_Siebman](https://forum.asana.com/u/Bastien_Siebman)\
**Post date:** [20 July 2022 06:26 UTC](https://forum.asana.com/t/a-new-api-for-project-templates/156432/22 "2022-07-20T06:26:27Z")

</div>

If you have dates in the template, then you need to give either a start date or an end date. That’s why the call is failing. `requested_dates` is probably compulsory.

[Next page](https://forum.asana.com/t/a-new-api-for-project-templates/156432.md?page=2)
