Felipe AmaralOriginal post
Rank 2: Process
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.
Plain text
POST /project/variables HTTP/1.1Host: cloud.appwrite.ioContent-Type: application/jsonX-Appwrite-Response-Format: 1.7.0X-Appwrite-Project: <YOUR_PROJECT_ID>X-Appwrite-Key: <API_KEY>{ "key": "test", "value": "test"}Im getting this return:
Plain text
{ "message": "app.xxxxxx@service.nyc.cloud.appwrite.io (role: applications) missing scope (projects.write)", "code": 401, "type": "general_unauthorized_scope", "version": "1.7.4"}Summary
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.