I execute the following command in the nodejs server sdk:
const createNewMember = await teams.createMembership(teamId, [], '', userId);
roles = empty array email = empty string
I get the following error message: "Invalid email
parameter: Value must be a valid email address"
However, in the documentation under "TeamsApi/createMembership" it says: "You only need to enter one of the following: User ID, email or phone number. Appwrite will primarily accept the user ID > email > phone number if you specify more than one of these parameters."
Why do I still need the email?
Recommended threads
- Function in Node.JS to monitor events ar...
Hello everyone. I'm creating my first Node.JS function, but I don't have much experience with node and javascript. I'm trying to create a function, that monito...
- Deploy function not working - 503
Hellon i get this error message, when i try to deploy a new version of a function <html><body><h1>503 Service Unavailable</h1>No server is available to handle...
- Error When load the website
Hi, I am getting this error whenever I reload my website please help me, I am using react Error: ** GET https://cloud.appwrite.io/v1/account 401 (Unauthoriz...