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

List Variations

Get a list of Variations for a specific Flag in a Project

You can use query parameters to filter/sort the response.

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

Query Params
int64

The max number of items to include per page or results.

string

Pagination page token. Implements prev, next, last, first

integer

Number of previous and next page links to supply for the request (defaults to 1).

sort
array of strings

Sort the Variations based on the attributes from left to right.

sort
boolean

Filter the Variations for a Flag by archived field status. A Variation for a Flag can be either archived (archived=true) or unarchived (archived=false)

boolean

Filter the Variations for a Flag by enabled field status. A Variation for a Flag can be either enabled (enabled=true) or disabled (enabled=false)

boolean

Filter the Variations for a Flag by whether the variation is used (in_use=true) or not (in_use=false) in rules.

string

Filter the Variations for a Flag by name, key, or description substring

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