Skip to content
Back

[v1.8.1] Getting error "(role: applications) missing scopes (["documents.write"])"

  • 0
  • Self Hosted
  • Functions
Orion
1 Jun, 2026, 01:01

... but that scope doesn't exist.

I am trying to get a function to run and modify tables in the database dynamically. I set everything up and eventually got:

TypeScript
(role: applications) missing scopes (["documents.write"])

The thing is, that API key scope "documents" does not exist. Look at the web admin page for it (see attachment). I am assuming "applications" is the role for API stuff via functions.

What the heck is going on here?

TL;DR
Error message: "(role: applications) missing scopes (["documents.write"])" Solution: Update the API being used by switching from Documents to Rows and utilize row.read and write for the required functions.
Orion
1 Jun, 2026, 01:03

please @ me

𝔸𝕍𝕨𝕒𝕧𝕖𝟘𝟟 ✨
1 Jun, 2026, 05:37

Use this one, insure the API your giving to the function is the same. You shouldn’t be using Documents though. It’s kinda outdated use Rows

Orion
1 Jun, 2026, 23:56

yeah that doesn't exist

𝔸𝕍𝕨𝕒𝕧𝕖𝟘𝟟 ✨
2 Jun, 2026, 01:57

Oh what, just try and use row.read and write

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more