1. Create a flag and variables
Create a flag with four variables using the Create flag API endpoint.
Before running this request, follow the instructions to set up your REST API cookbook.
- Prerequisite
- Create file
- Configure the API call
Create a flag with four variables using the Create flag API endpoint.
Before running this request, follow the instructions to set up your REST API cookbook.
Create three example calls to the Create a New Variation API endpoint.
Before running this request, follow the instructions to set up your REST API cookbook.
Create three example events using the Create a Custom Event API endpoint.
Before running this request, follow the instructions to set up your REST API cookbook.
Create seven audience attributes using the Create an attribute API endpoint. Attributes are used to target your audiences.
Before running this request, follow the instructions to set up your REST API cookbook.
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 API endpoint.
Before running this request, follow the instructions to set up your REST API cookbook.
Create six audiences to control who sees your flag rules using the Create an Audience API endpoint.
A single audience is defined based on custom user attributes you create.
Before running this request, follow the instructions to set up your REST API cookbook.
Use the Enable the Ruleset for a Flag in an Environment to launch your A/B test.
Before running this request, follow the instructions to set up your REST API cookbook.
Stop your flag and conclude your experiment using the Update the Ruleset for a Flag in an Environment API endpoint.
Before running this request, follow the instructions to set up your REST API cookbook.
Use the List rules, List reports, Fetch a Single Report, and the Get Experiment results API endpoints to get the A/B test's result.
Before running this request, follow the instructions to set up your REST API cookbook.