
Hey. I am trying to create a document in a DB in a Next.js project. My app doesn't have any authentication. I am getting 401 unauthorized error while creating a document. Can someone help me with this?

Have you given All permissions on the Collection?

Hey @ideclon , I couldn't find the settings in teh UI to give modify permisson of collection. Could you please guide me?

Sure. Go into the Collection, then select the Settings tab. Permissions is the fourth card down.

It's right in front of my eyes and I had to spend so much effort to find it. Thank you @ideclon π

No problem! If your issue has been solved, you can mark this post as closed by adding β[SOLVED]β to the beginning of the title

[SOLVED] Unauthorized to create a document in a database

done!
Recommended threads
- Multiple Set-Cookie headers collapsed on...
Iβm deploying a Next.js 15 app to Appwrite β Deploy β Sites. In app/api/auth/login/route.ts I try to set 3 cookies. Variant A (manual headers): const headers ...
- Bug: When creating a table, table name i...
I created a table with a typo. my_taable .... then my code couldn't find it. i updated table name and still couldn't find it. the table name doesn't update. i h...
- can't send emails
i explored the docs and it says Messaging.CreateEmail() but this function does not exist , i installed appwrite on next js env everything works fine except thi...
