Is it possible to create a database collection in Appwrite using REST API from flutter code?
Creating collection from Client side SDK is prohibited due to security reasons. You can use the Server SDK for that (though its not recommend to use in the client apps)
One thing you can do is create a cloud function and you can execute this manually from client side
Thank You
You can via REST, on client or server. Just need to pass key
You can't via client side sdk, like @Maniac_Fighter explain. But if you use fetch from browser (or other), np
Nevertheless, it's not recommended to use API Key in frontend
If all is ok for you. Don't forget to add [SOLVED] at begin of your post title, by editing it
Recommended threads
- Unable to create records with other user...
are we able to create records in collections with permissions of different user than the caller of this request? (with document security on) I have backend func...
- 500 Internal Error when Project is opene...
After migrating from 1.6.1 to 1.7.4 I noticed this strange behaviour: When I open a project in a separate tab I get a 500 internal error. However, then I simpl...
- New attribute stuck on processing?
I was running out of disk space and after creating an attribute and restarting my appwrite (self hosted) I have an attribute stuck on creation. Any way to remov...