The availability of features may depend on your plan type. Contact your Customer Success Manager if you have any questions.
Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideGitHubDev CommunityOptimizely AcademySubmit a ticketLog In
API Reference

Create a Feature

Create a Feature

Body Params

A string in JSON format that includes all the fields to create a new Feature. Note this endpoint is incompatible with Full Stack Targeted Rollouts projects (default in accounts created after July 2020) and with non-legacy Full Stack projects (default in projects created after February 2021). See the compatible API at https://library.optimizely.com/docs/api/flags/v1/index.html#tag/Flags.

boolean
Defaults to false

Whether the Feature has been archived

string

A short description of this Feature

environments
object

The configuration for this Feature's Rollout within each Environment, keyed by Environment key

string
required
length ≤ 64

Unique string identifier for this Feature within the Project

string

Name of the Feature

int64
required

The ID of the Project this Feature belongs to

variables
array of objects

Variables define the dynamic configuration of a feature, and each variable can take on a different value on a per-variation basis within a feature test.

variables
Responses

Language
Credentials
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json