RESTful endpoint for activating A/B testing experiments in the Sophra System
POST
function is the primary export, handling incoming HTTP POST requests to activate experiments. It returns a Promise<NextResponse>
, encapsulating the API’s response.
Data Flow
Request Validation Errors
Database Errors
Logical Errors
System Errors
experimentId
for fast lookupsPOSTGRESQL_URL
is properly set and the database is accessible before deploying this API to production environments.