# How to change user fields with API

**URL:** <https://meta.discourse.org/t/how-to-change-user-fields-with-api/147999>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [April 14, 2020, 7:16pm UTC](https://meta.discourse.org/t/how-to-change-user-fields-with-api/147999 "2020-04-14T19:16:27Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![pnoeric](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pnoeric/32/177144_2.png) [@pnoeric](https://meta.discourse.org/u/pnoeric)\
**Post date:** [April 15, 2020, 11:15am UTC](https://meta.discourse.org/t/how-to-change-user-fields-with-api/147999/4 "2020-04-15T11:15:46Z")

</div>

> [@blake](#):
>
> You can create a user with custom fields via the API by passing in `user_fields[1]` like this:

Thank you for all of this help! FWIW I’d love to see the ability to refer to user\_fields by their name (seems much less brittle?) but this explanation and info you’ve provided me is enormously helpful. I appreciate it 🙂

---

_[View the full topic](https://meta.discourse.org/t/how-to-change-user-fields-with-api/147999)._
