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
- Go 1.25 runtime
So I'm trying to use go 1.25 for my functions and I can only find go-1.23 as a function runtime. So I did some searching and found https://github.com/appwrite/a...
- [ENHANCEMENT] Use the custom Next.js dep...
Deployment adapters on Next.js are now stable! This means that we don't have to stick to the limitations of sniffing out build outputs and manually moving or mo...
- NextJS builds sudden runtime_timeout
My builds suddenly stopped working. Activating old prebuilt snapshots work, but redeploying that same code produces builds that throw runtime_timeout FRA region