# Adding task to board section using Python API

**URL:** <https://forum.asana.com/t/adding-task-to-board-section-using-python-api/26455>\
**Category:** API & Developers\
**Tags:** sections, tasks\
**Created:** [18 July 2018 13:16 UTC](https://forum.asana.com/t/adding-task-to-board-section-using-python-api/26455 "2018-07-18T13:16:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vincent\_LePore](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/vincent_lepore/32/20115_2.png) [@Vincent\_LePore](https://forum.asana.com/u/Vincent_LePore)\
**Post date:** [18 July 2018 13:16 UTC](https://forum.asana.com/t/adding-task-to-board-section-using-python-api/26455/1 "2018-07-18T13:16:59Z")

</div>

Hello Community!

I’m trying to add a task to a section within a project that is structured as a board. I’m able to locate the project and create a task, but it will not add the task to a specific section within the project board.

`new_task = client.tasks.create_in_workspace(WORKSPACE_ID_NUMBER,{"name":"API_TEST", "notes":"This is a test created via API to begin auto transferring data", "projects":PROJECT_ID_NUMBER, "section":SECTION_ID_NUMBER})`

This completes and posts the task onto the project board, but puts it into the first section instead  
of the section I define. Any thoughts would be helpful!

---

<div class="post-metadata">

**Author:** ![Diakoptis](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/diakoptis/32/22726_2.png) [@Diakoptis](https://forum.asana.com/u/Diakoptis)\
**Post date:** [18 July 2018 13:51 UTC](https://forum.asana.com/t/adding-task-to-board-section-using-python-api/26455/2 "2018-07-18T13:51:41Z")

</div>

Hey,

You need to define memberships of the task.

Check [this](https://forum.asana.com/t/how-create-task-with-membership-via-api/10481)

---

<div class="post-metadata">

**Author:** ![Vincent\_LePore](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/vincent_lepore/32/20115_2.png) [@Vincent\_LePore](https://forum.asana.com/u/Vincent_LePore)\
**Post date:** [18 July 2018 14:28 UTC](https://forum.asana.com/t/adding-task-to-board-section-using-python-api/26455/3 "2018-07-18T14:28:25Z")

</div>

Thank you, the example was really helpful and defining memberships solved the problem!

---

<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 18:58 UTC](https://forum.asana.com/t/adding-task-to-board-section-using-python-api/26455/4 "2025-05-30T18:58:12Z")

</div>


