rocketchat-node
rocketchat-node copied to clipboard
Error creating a user RequestError: Invalid JSON for Custom Fields [error-invalid-customfield-json]
Hi, i'm trying to create a user and set a custom field, like the twitter account or something like that but it doesn't seems to work. Any problem in my json ? Here is my variable :
var userToAdd = { "name": "myName", "email": "myEmail", "password": "myPassword", "username": "myUsername", "sendWelcomeEmail": false, "joinDefaultChannels": false, "verified":false, "requirePasswordChange":false, "roles":["user"], "customFields": { "twitter": "@myTwitter" } }
Facing the same issue. Has anyone found a solution for this?