Hi, the question is pretty clear already. I am trying to add a "premium" label to my user once a certain request has finished. Is it possible to update my users labels throught the client sdk or should I use the server SDK meaning adding an endpoint to update the user on my node server.
Hi @Dynerus you can only update labels using only server SDK
For security, you can’t update using client SDK.
You can create function that can update labels using server SDK
Alright thanks for the quick answer! seemed pretty weird to me all account fields could be updated by the client except for the labels
Will do, thanks!
It’s good for example your case, only users with label premium can access certain documents or collections or storage buckets
If you don’t know, you can use labels for permissions
Recommended threads
- How to properly implement custom domain?...
- Site deployment does not work.
I can change a file, deploy, change does not take effect. Delete file in repo, push changes,deploy. Old file remains undeleted Duplicate file, rename it, push,...
- Appwrite DNS nameservers return SERVFAIL...
My custom domain demomanasa.online (and all its subdomains) stopped resolving with ERR_NAME_NOT_RESOLVED for all visitors. I have traced the failure to Appwrite...