Get strategies that reference segment
GET <your-unleash-url>/api/admin/segments/:id/strategies
Authorization
name: Authorizationtype: apiKeyin: header
Retrieve all strategies that reference the specified segment.
Request
Path Parameters
- id string required
Responses
- 200
segmentStrategiesSchema
- application/json
- Schema
- Example (from schema)
Schema
strategies object[]required
changeRequestStrategies object[]
{
"strategies": [
{
"id": "e465c813-cffb-4232-b184-82b1d6fe9d3d",
"featureName": "new-signup-flow",
"projectId": "red-vista",
"environment": "development",
"strategyName": "flexibleRollout"
}
],
"changeRequestStrategies": [
{
"id": "e465c813-cffb-4232-b184-82b1d6fe9d3d",
"featureName": "new-signup-flow",
"projectId": "red-vista",
"environment": "development",
"strategyName": "flexibleRollout"
}
]
}
Authorization
name: Authorizationtype: apiKeyin: header
Request
Request
curl / cURL
curl -L -X GET '<your-unleash-url>/api/admin/segments/:id/strategies' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
python / requests
curl -L -X GET '<your-unleash-url>/api/admin/segments/:id/strategies' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
go / native
curl -L -X GET '<your-unleash-url>/api/admin/segments/:id/strategies' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
nodejs / axios
curl -L -X GET '<your-unleash-url>/api/admin/segments/:id/strategies' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
ruby / Net::HTTP
curl -L -X GET '<your-unleash-url>/api/admin/segments/:id/strategies' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
csharp / RestSharp
curl -L -X GET '<your-unleash-url>/api/admin/segments/:id/strategies' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
php / cURL
curl -L -X GET '<your-unleash-url>/api/admin/segments/:id/strategies' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
java / OkHttp
curl -L -X GET '<your-unleash-url>/api/admin/segments/:id/strategies' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
powershell / RestMethod
curl -L -X GET '<your-unleash-url>/api/admin/segments/:id/strategies' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'