Sending in 5 min π
I think it was made optional in 1.4
Here I am, so the code to send it is:
try{
teams.createMembership(
teamId: "teamID",
email: "contacto@dh-sw.net",
roles: [],
url: "https://inicio.dh-sw.net");
} catch(e){
print(e)
}
Sorry for the delay, It took me longer than expected π
Maybe the issue is not specifying roles?
No that should work
What dart SDK you're using?
7.1.0
Try to use ID instead of email Is it working?
trying now
Nope, no luck π’
Tried specifying a role, and no luck
Okay, solved
Can you
- add
await
then check thee
await teams.createMembership(
- check the logs?
Ohh
Great
How?
API scopes ππ΅βπ«
π
Sincerely a dumb mistake π
Those are the most common
Yes. I thought I had enabled all scopes. Then double checked and saw it was disabled just for teams API π€¦ββοΈ
I remember when first learning C, the author wrote "everyone will forget to add ;
" I though I wouldn't. but I did, many times.
[SOLVED] Cannot add an user to a team through server SDK
Recommended threads
- Having issues with login via CLI
``` ~/appwrite ξ° appwrite login --endpoint https://localhost/v1 --verbose ? Enter your email myvalidemai...
- Send Email Verification With REST
I am using REST to create a user on the server side after receiving form data from the client. After the account is successfully created i wanted to send the v...
- Use different email hosts for different ...
Hello, I have 2 projects and i want to be able to set up email templates in the projects. Both projects will have different email host configurations. I see ...