RESTful API for managing A/B testing experiments in the Sophra System
ExperimentCreateSchema
defines the structure for creating new experiments:
name
: String, required - The name of the experimentdescription
: Optional string - A description of the experimentstartDate
: ISO 8601 datetime string - The start date of the experimentendDate
: ISO 8601 datetime string - The end date of the experimentconfiguration
: Object containing:
variants
: Array of variant objects, each with:
id
: String - Unique identifier for the variantname
: String - Name of the variantweight
: Number between 0 and 1 - Traffic allocation weightconfig
: Record of unknown type - Custom configuration for the varianttargetMetrics
: Array of strings - Metrics to be measured in the experimentGET
and POST
functions handle retrieving and creating experiments, respectively.
Data Flow
GET Request Errors
POST Request Errors