Supabase API to insert or update data

Database & APIs

Hello,
I am using supabase with my FF project and I am very happy with it.
I have several API to retrieve data!
I also created an API to call a supabase function that insert data and this where I am lost because it doesn't work:
If this API is a POSTapi with variables in a json body,I have this message:
{

"code": "PGRST100",

"details": "unexpected \"3\" expecting \"not\" or operator (eq, gt, ...)",

"hint": null,

"message": "\"failed to parse filter (3)\" (line 1, column 1)"

}
If it is setup as a GET API with variables in the url:
{

"code": "25006",

"details": null,

"hint": null,

"message": "cannot execute UPDATE in a read-only transaction"

}
HEADERS are good (same as my others API and RLS policies on table are good too..



Any idea??

Thanks you

What have you tried so far?

Verify RLS, API setup, POST and GET,headers..

Did you check FlutterFlow's Documentation for this topic?
No
1
4 replies