POST /admin/refresh-schema-cache
POST /admin/refresh-schema-cache
POST /api/admin/refresh-schema-cache Refreshes the Supabase PostgREST schema cache by executing: NOTIFY pgrst, 'reload schema'; This fixes "Could not find the table in the schema cache" errors. Requires: Authenticated user (development only - add admin check in production)
Endpoint
POST /admin/refresh-schema-cache
Authentication
This endpoint requires authentication. Include your authentication token in the request headers.
Error Responses
| Status Code | Error Code | Description |
|---|---|---|
| 403 | HTTP_403 | Forbidden |
| 401 | HTTP_401 | Unauthorized |
| 500 | HTTP_500 | Internal Server Error |
| 500 | HTTP_500 | Internal Server Error |
Example Request
curl -X POST "https://api.allurelms.com/admin/refresh-schema-cache" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'