
I'm building a Azure DevOps Pipeline Task to deploy my functions to Appwrite using REST APIs. How can I set project global variables via REST? This endpoint does not work with project API Key.
TypeScript
POST /project/variables HTTP/1.1
Host: cloud.appwrite.io
Content-Type: application/json
X-Appwrite-Response-Format: 1.7.0
X-Appwrite-Project: <YOUR_PROJECT_ID>
X-Appwrite-Key: <API_KEY>
{
"key": "test",
"value": "test"
}
Im getting this return:
TypeScript
{
"message": "app.xxxxxx@service.nyc.cloud.appwrite.io (role: applications) missing scope (projects.write)",
"code": 401,
"type": "general_unauthorized_scope",
"version": "1.7.4"
}
TL;DR
Developers want to set project global variables in Appwrite using REST APIs, but are facing authorization issues. The error message indicates a missing "projects.write" scope for the specified role. To resolve this, grant the necessary scope to the API Key in order to successfully set project global variables.Recommended threads
- 404 errors after 7 Days
Local hosted Appwrite via docker. Last version and current version. After exactly 7 days Appwrite stops working. I get 404 route not found, cannot access anyth...
- my database attribute stuck in processin...
when i created attributes in collection 3 of those attributes become "processing", and they are not updating, the worst thing is that i cant even delete them s...
- Is Quick Start for function creation wor...
I am trying to create a Node.js function using the Quick Start feature. It fails and tells me that it could not locate the package.json file. Isn't Quick Start ...
