Create flag variables
Variables let you remotely configure your flag. Instead of hard-coding and updating your variables by re-deploying, you can group them in a flag variation and update them remotely in the Optimizely Feature Experimentation application.
See Create flag variables in the user documentation to see the available variable types, detailed examples, and step-by-step instructions for creating variables using the Feature Experimentation UI.
For a specific use-case example using an image carousel iOS, see Flag variable example with an image carousel.
Create flag variable
You can create flag variables in the Feature Experimentation UI or the Feature Experimentation REST API.
Use the Feature Experimentation UI
Go to Create flag variables in the user documentation.
Use the Feature Experimentation REST API
You can use the Optimizely Feature Experimentation REST API Variable Definitions endpoints to manage your variables. See Create Variable Definition for information.
Implement variables
After you have created your variables, the next step is to create flag variations. Variations let you avoid hard-coding variables in your application and let you group and reuse variable values using flag rules.
Updated 8 days ago