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

Create a New Variation

Creates a new Variation for a specific Flag in a project.

This operation corresponds to the create_url in a Variations response.

Required properties must be present in the request body.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
integer
required

The project identifier

string
required

The Flag identifier

Body Params
string

Additional context of the Variation

string
required

User-facing Unique identifier of the Variation

string
required

User-facing name of the Variation

variables
object

Map of flag variables that include variable key and value

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

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