updateExperimentDefinition
inline suspend fun AppConfigClient.updateExperimentDefinition(crossinline block: UpdateExperimentDefinitionRequest.Builder.() -> Unit): UpdateExperimentDefinitionResponse
Updates an experiment definition. You can update treatments, the control, audience rules, and other properties. You cannot update an experiment definition while an experiment run is active.
Samples
// The following UpdateExperimentDefinition example updates the hypothesis and audience rule of an
// experiment definition.
val resp = appConfigClient.updateExperimentDefinition {
applicationIdentifier = "339ohji"
experimentDefinitionIdentifier = "bsxyd7k"
hypothesis = "Enabling the feature will increase conversion by 10%"
audienceRule = "(eq $country \"US\")"
}Content copied to clipboard