Populate additional fields when creating a user using Write API
-
Hello everyone!
I'm creating users in NodeBB instance from another Node.js application using NodeBB Write API plugin.
According to the documentation
POST /api/v1/users/
accepts onlyusername, password, email
fields and "Any other data passed in will be saved into the user hash".My questions are: What is actually user hash in context of NodeBB? And is it possible at all to populate any other fields than
username, password, email
when creating a user using Write API? -
Thank you for response!
No, I'm using mongo instead of redis. I'm just wondering how can I write additional fields like
fullname
,location
etc. using Write API. Should I firstly create a user withPOST /api/v1/users/
and then make additional API callPUT /api/v1/users/:uid
in order to populate additional user fields? -
Thanks a lot for your assistance. The filter
filter:user.updateProfile
seems to be very useful for my needs.