apply_expose
Apply a declarative authorization manifest to secure tables, views, and RPCs in a project. Convergent: reapplying the same manifest is a no-op; items removed are automatically revoked.
Instructions
Apply a declarative authorization manifest to a project (POST /projects/v1/admin/:id/expose). The manifest describes the full authorization surface: tables (with policy, owner_column, force_owner_on_insert, i_understand_this_is_unrestricted, custom_sql), views (with base, select, filter), and rpcs (with signature, grant_to). Convergent: applying the same manifest twice is a no-op; items dropped between applies have their policies/grants/triggers/views revoked. Tables are dark by default — any table not declared with expose:true is unreachable via anon/authenticated.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| manifest | Yes | Full authorization manifest. Convergent: applying twice is a no-op; items removed between applies are dropped. Tables are dark by default — any table not listed with expose:true is unreachable via anon/authenticated. | |
| project_id | Yes | The project ID |