v1

latestOpenAPI 3.0.02026-07-13103151174.7 KB
Variations

Get a Feature Variation

Get a variation by ID or key

get/v1/projects/{project}/features/{feature}/variations/{key}

Path parameters

keystring required

A Variation key or ID

featurestring required

A Feature key or ID

projectstring required

A Project key or ID

Response

keystring required

Unique key by Feature, can be used in the SDK / API to reference by 'key' rather than _id. Must only contain lower-case characters and _, - or ..

namestring required

Variation display name.

variablesobject

A key-value map of variables to their value for this variation

_idstring required

A unique Variation ID

Example response

{
  "key": "variation-1",
  "name": "User's with dashboard access",
  "variables": {
    "show-new-dashboard": true,
    "string-var": "hello world",
    "bool-var": true,
    "num-var": 99,
    "json-var": {
      "foo": "bar"
    }
  },
  "_id": "61450f3daec96f5cf4a49946"
}