Get all strategies
GET/api/admin/strategies
Retrieves all strategy types (predefined and custom strategies) that are defined on this Unleash instance.
Responses
- 200
- 401
strategiesSchema
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
]
Version of the strategies schema
Possible values: [1
]
1
strategies
object[]
required
List of strategies
An optional title for the strategy
GradualRollout - Prod25
The name (type) of the strategy
flexibleRollout
A human friendly name for the strategy
Gradual Rollout
A short description of the strategy
Gradual rollout to logged in users
Whether the strategy can be edited or not. Strategies bundled with Unleash cannot be edited.
true
true
parameters
object[]
required
A list of relevant parameters for each strategy
percentage
percentage
Gradual rollout to logged in users
true
{
"version": 1,
"strategies": [
{
"title": "GradualRollout - Prod25",
"name": "flexibleRollout",
"displayName": "Gradual Rollout",
"description": "Gradual rollout to logged in users",
"editable": true,
"deprecated": true,
"parameters": [
{
"name": "percentage",
"type": "percentage",
"description": "Gradual rollout to logged in users",
"required": true
}
]
}
]
}
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
The ID of the error instance
9c40958a-daac-400e-98fb-3bb438567008
The name of the error kind
AuthenticationRequired
A description of what went wrong.
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."
}