# Subtasks are duplicated when using the API only

**URL:** <https://forum.asana.com/t/subtasks-are-duplicated-when-using-the-api-only/131169>\
**Category:** API & Developers\
**Tags:** subtasks\
**Created:** [4 August 2021 20:40 UTC](https://forum.asana.com/t/subtasks-are-duplicated-when-using-the-api-only/131169 "2021-08-04T20:40:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon62907000](https://luna1.co/8d76cd.png) [@anon62907000](https://forum.asana.com/u/anon62907000)\
**Post date:** [4 August 2021 20:40 UTC](https://forum.asana.com/t/subtasks-are-duplicated-when-using-the-api-only/131169/1 "2021-08-04T20:40:23Z")

</div>

Hey there,

I am trying to set up a specific structure for my company and the issue I’m having is probably expected behavior but I was hoping someone would be able to help me get my desired outcome.

When you create a subtask in the UI it does not duplicate that sub task anywhere else, but when you use the API

_[https://app.asana.com/api/1.0/tasks/${TaskGid}/subtasks](https://app.asana.com/api/1.0/tasks/$%7BTaskGid%7D/subtasks)_

it will create the subtask as intended but then also a duplicate that sits outside of the sections. Is there a way to have the manual outcome (no duplication) while using the API?

Example below:  
 ![example](https://us1.discourse-cdn.com/asana/original/3X/b/7/b7aaa974e7e1f50122a7701753733a4889452432.png)

Thank you

---

<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:** [5 August 2021 10:12 UTC](https://forum.asana.com/t/subtasks-are-duplicated-when-using-the-api-only/131169/2 "2021-08-05T10:12:26Z")

</div>

That’s probably because when you create a subtask you also give a project, which is the reason why your subtask would also be added as a task 🙂

---

<div class="post-metadata">

**Author:** ![anon62907000](https://luna1.co/8d76cd.png) [@anon62907000](https://forum.asana.com/u/anon62907000)\
**Post date:** [8 August 2021 19:00 UTC](https://forum.asana.com/t/subtasks-are-duplicated-when-using-the-api-only/131169/3 "2021-08-08T19:00:47Z")

</div>

Ahh I see, thank you for the reply! That clears it up 🙂

---

<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/subtasks-are-duplicated-when-using-the-api-only/131169/4 "2025-05-30T19:05:19Z")

</div>

Closed on 30 May 2025 19:05 UTC


