I’m making a request to create a user to https://[DOMAIN].eu.auth0.com/api/v2/users. I’ve followed the documentation here. I’ve sent the request via axios (nodejs) and Postman with the same result.
This creates the user, but does not set any user_metadata. Everything else is set, including app_metadata.
My request body:
{
"name": "xxxx",
"email": "jane.doe@example.com",
"connection": "xxxx",
"password": "xxxx",
"user_metadata": {
"hobby": "surfing"
},
"app_metadata": {
"plan": "full"
}
}
In auth0, the user does not have user_metadat and my response returns, amongst other things,
"user_metadata": {},
I’ve been unable to figure out what I’m doing wrong here, and would appreciate some clarification. Thanks.