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 CodeError CodeDescription
403HTTP_403Forbidden
401HTTP_401Unauthorized
500HTTP_500Internal Server Error
500HTTP_500Internal 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 '{}'