# You have not completed all the user fields API error

**URL:** <https://meta.discourse.org/t/you-have-not-completed-all-the-user-fields-api-error/56983>\
**Category:** Product Support\
**Created:** [06.Февраль.2017 15:55:30 UTC](https://meta.discourse.org/t/you-have-not-completed-all-the-user-fields-api-error/56983 "2017-02-06T15:55:30Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![nathanhamilton](https://avatars.discourse-cdn.com/v4/letter/n/6a8cbe/32.png) [@nathanhamilton](https://meta.discourse.org/u/nathanhamilton)\
**Post date:** [07.Февраль.2017 17:19:26 UTC](https://meta.discourse.org/t/you-have-not-completed-all-the-user-fields-api-error/56983/9 "2017-02-07T17:19:26Z")

</div>

So I was able to get it to work by using `user_fields[1]` as shown below. This was made known to me by watching the network traffic while signing up on our domain and zoning in on the /users POST request.

`curl -X POST -H "Content-Type: multipart/form-data;" -F "api_key=myapikey" -F "api_username=discourse1" -F "name=full name" -F "email=myemail@test.com" -F "password=newpass" -F "user_fields[1]=Freshman" -F "user_fields[5]=Jan2017" -F "username=myusername" -F "active=true" "https://forums.lumerit.com/users"`

I have seen this issue being addressed here: [https://meta.discourse.org/t/getting-you-have-not-completed-all-the-user-fields-error-while-creating-user-using-php-api/52043/19](https://meta.discourse.org/t/getting-you-have-not-completed-all-the-user-fields-error-while-creating-user-using-php-api/52043/19)

However, I would like to ask that the documentation for the API be updated as it says nothing about custom fields: [Discourse API Docs](https://discourse.github.io/discourse_api_docs/#tag/Users%2Fpaths%2F~1users%2Fpost)

Thanks for your help Blake!

---

_[View the full topic](https://meta.discourse.org/t/you-have-not-completed-all-the-user-fields-api-error/56983)._
