Features
Get variants for a feature in an environment
Returns the variants for a feature in a specific environment. If the feature has no variants it will return an empty array of variants
get/api/admin/projects/{projectId}/features/{featureName}/environments/{environment}/variants
Path parameters
projectIdstring required
featureNamestring required
environmentstring required
Response
featureVariantsSchema
Example response
{
"version": 1,
"variants": [
{
"name": "blue_group",
"weightType": "variable",
"stickiness": "custom.context.field",
"payload": {
"type": "json",
"value": "{\"color\": \"red\"}"
},
"overrides": [
{
"contextName": "userId",
"values": [
"red",
"blue"
]
}
]
}
]
}