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
- Why does this happen?
`AppwriteException: general_argument_invalid, Invalid `secret` param: Value must be a valid string and at least 1 chars and no longer than 256 chars (400)` the...
- Selfhosted starter python function retur...
I am running a selfhosted appwrite instance. Creating a node function and executing it works just fine but when i try to execute a python starter function, i ge...
- How to properly implement custom domain?...