# Set task custom field using curl

**URL:** <https://forum.asana.com/t/set-task-custom-field-using-curl/51404>\
**Category:** API & Developers\
**Created:** [3 June 2019 09:42 UTC](https://forum.asana.com/t/set-task-custom-field-using-curl/51404 "2019-06-03T09:42:23Z")\
**Posts on this page:** 1\
**Showing post:** 6

<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:** [3 June 2019 16:06 UTC](https://forum.asana.com/t/set-task-custom-field-using-curl/51404/6 "2019-06-03T16:06:15Z")

</div>

@Floris_Thijssen Try following the syntax shown in this post:

> [@Api & Custom Fields](https://forum.asana.com/t/api-custom-fields/1733/18):
>
> Hey all, catching back up on backlog here. @Phil_Seeman It’s not well documented (I’ll create a follow up task to fix this) but indexing into arrays using form data is done with square brackets both for offset-based arrays (like collaborators[0], collaborators[1]) and for associative arrays (using IDs). Try: curl --request PUT -H "authorization: Bearer MY-PERSONAL-ACCESS-TOKEN" https://app.asana.com/api/1.0/tasks/718125926216046 --data-urlencode "custom\_fields[744020393575926]=A field updated …

---

_[View the full topic](https://forum.asana.com/t/set-task-custom-field-using-curl/51404)._
