Skip to main content

Retrieve variants for a feature (deprecated)

GET 

https://us.app.unleash-hosted.com/ushosted/api/admin/projects/:projectId/features/:featureName/variants

deprecated

This endpoint has been deprecated and may be replaced or removed in future versions of the API.

(deprecated from 4.21) Retrieve the variants for the specified feature. From Unleash 4.21 onwards, this endpoint will attempt to choose a production-type environment as the source of truth. If more than one production environment is found, the first one will be used.

Request

Responses

featureVariantsSchema

Authorization: Authorization

name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API
curl -L 'https://us.app.unleash-hosted.com/ushosted/api/admin/projects/:projectId/features/:featureName/variants' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
Request Collapse all
Base URL
https://us.app.unleash-hosted.com/ushosted
Auth
Parameters
— pathrequired
— pathrequired
ResponseClear

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