Skip to main content

Get variants for a feature in an environment

GET 

<your-unleash-url>/api/admin/projects/:projectId/features/:featureName/environments/:environment/variants

Returns the variants for a feature in a specific environment. If the feature has no variants it will return an empty array of variants

Request

Responses

featureVariantsSchema

Authorization: Authorization

name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API
curl -L '<your-unleash-url>/api/admin/projects/:projectId/features/:featureName/environments/:environment/variants' \
-H 'Accept: application/json' \
-H 'Authorization: <Authorization>'
Request Collapse all
Base URL
<your-unleash-url>
Auth
Parameters
— pathrequired
— pathrequired
— pathrequired
ResponseClear

Click the Send API Request button above and see the response here!