hey everyone, as you know that supabase automatica...
# help
d
hey everyone, as you know that supabase automatically creates CRUD APIs for every table. Is there a way I can disable an API? For instance I've a table where the client's job is to read only, so I want to disable post API that creates a new record. Because I want the records are inserted manually through sql or through supabase UI. Any help is appreciated. Thanks!
n
Hello @d33pu! This thread has been automatically created from your message in #843999948717555735 a few seconds ago. We have already mentioned the @User so that they can see your message and help you as soon as possible! Want to unsubscribe from this thread? Right-click the thread in Discord (or use the ``...`` menu) and select "Leave Thread" to unsubscribe from future updates. Want to change the title? Use the ``/title`` command! We have solved your problem? Click the button below to archive it.
g
There is no way to disable the API. You can move your tables to your own schema and not add it to the api (public is hardcoded in the api I believe). You can use RLS. You also might be able to play with the permissions on the public schema as to anon and authenticated user, but it might be cleaner to just set up your own schema.
n
deepu (2022-05-08)
d
Thanks Gary, never worked with schema before. I will check it out.