# Asana API node.js custom field update

**URL:** <https://forum.asana.com/t/asana-api-node-js-custom-field-update/74363>\
**Category:** API & Developers\
**Created:** [13 February 2020 20:39 UTC](https://forum.asana.com/t/asana-api-node-js-custom-field-update/74363 "2020-02-13T20:39:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Konstantin\_Kalashnik](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/konstantin_kalashnik/32/21745_2.png) [@Konstantin\_Kalashnik](https://forum.asana.com/u/Konstantin_Kalashnik)\
**Post date:** [13 February 2020 20:39 UTC](https://forum.asana.com/t/asana-api-node-js-custom-field-update/74363/1 "2020-02-13T20:39:37Z")

</div>

I’m trying to change the custom field value with Node.js  
Here’s my code

client.tasks.update(‘1161678103000268’,{custom\_fields: {enum\_value : ‘725394518222140’{gid:‘725394518222142’}}})

What am I doing wrong?

---

<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:** [29 March 2021 18:59 UTC](https://forum.asana.com/t/asana-api-node-js-custom-field-update/74363/2 "2021-03-29T18:59:49Z")

</div>

Here is the correct synthax!

> [@Can't update custom field value using Asana API](https://forum.asana.com/t/cant-update-custom-field-value-using-asana-api/56014/3):
>
> The issue here is that you’re trying to update the definition of a custom field, not the value of a custom field on a task. The API call you want is something like PUT /tasks/\<task-id\> { "data": { "custom\_fields": { "1115652263994341": "10.5" } } }

---

<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/asana-api-node-js-custom-field-update/74363/3 "2025-05-30T19:05:52Z")

</div>

Closed on 30 May 2025 19:05 UTC


