We have created an integration of our product with Rocket.Chat, integration assumes creating accounts via REST API and then logging user in. Have just deployed a test installation of Rocket.Chat, version 4.5.1, installed from snapd.
When attempting to use users.create method of REST API, we’re always getting this error:
userData.hasOwnProperty is not a function
We have rechecked that valid email, name, password and username are sent in, creating a new account via Register form works as expected.
That actually did work, so I compared what this command does with what our code did, turned out users.create (as well as other Users endpoints) now requires parameters in JSON format while we were using plain POST (which, strangely enough, worked till at least 4.0.0).
Now the integration is up and running again, thank you so much!
Please close the call and/or mark as solved, I don’t seem to have permissions to do it