Do it manually via REST
id assume it's too risky to manipulate the db myself?
but it doesnt exist, so the api wont do anything
No. The deployment doesn't exist
Deployment != Function
Just delete the function
oh
curl -X DELETE
\
'https://[APPWRITE_ENDPOINT]/v1/functions/[FUNCTION_ID]'
\
-H 'Content-Type: application/json'
\
-H 'X-Appwrite-Project: [PROJECT_ID]'
\
-H 'X-Appwrite-Keys: [API_KEY]'
I'd assume this would work?
{"message":"User (role: guests) missing scope (functions.write)","code":401,"type":"general_unauthorized_scope","version":"1.5.10"}%
You made a typo
It should be X-Appwrite-Key
Same issue
the api key i used has all the permissions
Weird. It should say role: applicationswhen you use an api key
ill create a new one
see if that does anything
oop that fixed it
maybe i accidentaly pressed a key at the end o f the other one and it added a character
who knows
Hooray! All fixed!
Tysm :)))
You're welcome π
and that fixed another issue I didn't even know I had lol
[SOLVED] Frontend showing Function even though it doesn't exist
Recommended threads
- After a GET request is passed to functio...
Create execution in the console can normally retrieve the get parametersγWHyοΌ
- function subdomain ssl certs
The generated subdomain isn't getting a valid ssl cert, I was wondering if appwrite automatically generates one or uses a wildcard for *.functions.domain.com? ...
- Whats best practise for Appwrite Cloud?
Appwrite Teams map very nicely to my needs, it is how i group users together. ... I use roles to define permissions. Should I also map a table to each team ? ...