# How to create user\_metadata for a New user sign up in Postman

**URL:** <https://community.auth0.com/t/how-to-create-user-metadata-for-a-new-user-sign-up-in-postman/8824>\
**Category:** Get Help\
**Tags:** create-user, user\_metadata, postman, user-creation\
**Created:** [November 25, 2017, 1:08am UTC](https://community.auth0.com/t/how-to-create-user-metadata-for-a-new-user-sign-up-in-postman/8824 "2017-11-25T01:08:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![safadig](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/safadig/32/7461_2.png) [@safadig](https://community.auth0.com/u/safadig)\
**Post date:** [November 25, 2017, 1:08am UTC](https://community.auth0.com/t/how-to-create-user-metadata-for-a-new-user-sign-up-in-postman/8824/1 "2017-11-25T01:08:45Z")

</div>

Trying to test a create New user sign up with user\_metadata fields in POSTMAN using the Auth0 Collection but keep getting the error:  
{  
“error”: “invalid user\_metadata type (expected object)”  
}  
When I look at the HTTP or CURL Code, the Json file is not translated correctly.  
I am using user\_metadata in Body variable and content-type set as application/json

I tried all possible combination for the value of the user\_metadata Key including escape characters for the curly brackets etcc.. but unscussful so far.

Test json:  
{“fish”: “a85”,“color”: “blah” }]

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [November 27, 2017, 7:40pm UTC](https://community.auth0.com/t/how-to-create-user-metadata-for-a-new-user-sign-up-in-postman/8824/2 "2017-11-27T19:40:46Z")

</div>

Based on the test JSON you included in the question the issue is that you’re trying to pass an array and not an object. I just tried to signup an end-user through `/dbconnections/signup` endpoint using the following JSON payload and worked as expected:

```
{
  "email": "user@example.com",
  "password": "x",
  "connection": "db",
	"user_metadata": {
		"fish": "a85",
		"color": "blah"
	}
}

```

Have in mind that the metadata properties specified through that endpoint must be string properties and that there is a maximum number of allowed properties you can set through that endpoint.

---

<div class="post-metadata">

**Author:** ![safadig](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/safadig/32/7461_2.png) [@safadig](https://community.auth0.com/u/safadig)\
**Post date:** [November 27, 2017, 10:39pm UTC](https://community.auth0.com/t/how-to-create-user-metadata-for-a-new-user-sign-up-in-postman/8824/3 "2017-11-27T22:39:43Z")

</div>

Thanks…It works if placed as -raw- in body… not if in x-www-form-urlencoded…  
However, this does not matter as all I needed was to get the xhr format which works perfectly

---

<div class="post-metadata">

**Author:** ![safadig](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/safadig/32/7461_2.png) [@safadig](https://community.auth0.com/u/safadig)\
**Post date:** [November 27, 2017, 10:39pm UTC](https://community.auth0.com/t/how-to-create-user-metadata-for-a-new-user-sign-up-in-postman/8824/4 "2017-11-27T22:39:43Z")

</div>

Thanks…It works if placed as -raw- in body… not if in x-www-form-urlencoded…  
However, this does not matter as all I needed was to get the xhr format which works perfectly

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 2, 2018, 5:57am UTC](https://community.auth0.com/t/how-to-create-user-metadata-for-a-new-user-sign-up-in-postman/8824/5 "2018-03-02T05:57:32Z")

</div>


