Get strategies that reference segment
GET /api/admin/segments/:id/strategies
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
The list of strategies
Array [id string requiredThe ID of the strategy
featureName string requiredThe name of the feature flag that this strategy belongs to.
projectId string requiredThe ID of the project that the strategy belongs to.
environment string requiredThe ID of the environment that the strategy belongs to.
strategyName string requiredThe name of the strategy's type.
]changeRequestStrategies object[]
A list of strategies that use this segment in active change requests.
Array [id stringThe ID of the strategy. Not present on new strategies that haven't been added to the feature flag yet.
featureName string requiredThe name of the feature flag that this strategy belongs to.
projectId string requiredThe ID of the project that the strategy belongs to.
environment string requiredThe ID of the environment that the strategy belongs to.
strategyName string requiredThe name of the strategy's type.
]
{
"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"
}
]
}
Loading...