API Recipes
Create a flag and variables
Create a flag with four variables using the Create flag https //docs. developers.
Create variations
Create three example calls to the Create a New Variation https //docs. developers.
Create events
Create three example events using the Create a Custom Event API endpoint https //docs. developers.
Create attributes
Create seven audience attributes https //support. optimizely.
Create experiment
Create an A/B test to experiment if showing the number of items left in stock on the product detail page (PDP) will increase add-to-cart clicks using the Update the Ruleset for a Flag in an Environment https //docs. developers.
Launch experiment
Use the Enable the Ruleset for a Flag in an Environment https //docs. developers.
Conclude experiment
Stop your flag and conclude your experiment using the Update the Ruleset for a Flag in an Environment https //docs. developers.