Also, what version of Appwrite you're using?
Help Needed with Appwrite Teams API - Invalid Email Address Error
Votes
0
Replies
24
Participants
Unknown
Messages
25
Rank 2: Process
Rank 2: Process
There
Rank 2: Process
The latest version
Rank 2: Process
I'm working with the cloud
And last the createTeamMebership code?
Rank 2: Process
Rank 2: Process
It's there
It's interesting but the createMemebership has a different signature then the one you see online.
https://github.com/appwrite/sdk-for-node/blob/master/lib/services/teams.js#L231
Try this in your code
const membership = await teams.createMembership( teamID, roles, redirectUrl, userEmail);Because the order is different you've sent the redirectUrl as email and it wasn't an email.
Rank 2: Process
Alright
Rank 2: Process
It works fine. Thanks
Rank 2: Process
I don't even know how I missed that.

It's not on you
The order on the docs aren't clear (correct)
Rank 2: Process
Yeah. But it's kind of the norm that optional parameters come after the mandatory ones.
I think it meant to be to other langauges that you can choose and have named parameters.
Rank 2: Process
That's right
Rank 3: Container
roles should be above though
Rank 3: Container
if its a required param
Ohh., sure also this
Agreed.
You can upvote it
https://github.com/appwrite/appwrite/issues/5676
Admin
I'm actually surprised roles is required 😅
😂 So maybe the issue will get an upvote from you.
👍