Get strategies that use a context field
GET/api/admin/context/:contextField/strategies
Retrieves a list of all strategies that use the specified context field. If the context field doesn't exist, returns an empty list of strategies
Request
Path Parameters
contextField stringrequired
Responses
- 200
- 401
contextFieldStrategiesSchema
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
strategies
object[]
required
List of strategies using the context field
id stringrequired
The ID of the strategy.
Example:
433ae8d9-dd69-4ad0-bc46-414aedbe9c55featureName stringrequired
The name of the feature that contains this strategy.
Example:
best-featureprojectId stringrequired
The ID of the project that contains this feature.
environment stringrequired
The ID of the environment where this strategy is in.
strategyName stringrequired
The name of the strategy.
{
"strategies": [
{
"id": "433ae8d9-dd69-4ad0-bc46-414aedbe9c55",
"featureName": "best-feature",
"projectId": "string",
"environment": "string",
"strategyName": "string"
}
]
}
Authorization information is missing or invalid. Provide a valid API token as the authorization header, e.g. authorization:*.*.my-admin-token.
- application/json
- Schema
- Example (from schema)
Schema
id string
The ID of the error instance
Example:
9c40958a-daac-400e-98fb-3bb438567008name string
The name of the error kind
Example:
AuthenticationRequiredmessage string
A description of what went wrong.
Example:
You must log in to use Unleash. Your request had no authorization header, so we could not authorize you. Try logging in at /auth/simple/login.{
"id": "9c40958a-daac-400e-98fb-3bb438567008",
"name": "AuthenticationRequired",
"message": "You must log in to use Unleash. Your request had no authorization header, so we could not authorize you. Try logging in at /auth/simple/login."
}
Loading...