Get a strategy definition
GET /api/admin/strategies/:name
Retrieves the definition of the strategy specified in the URL
Request
Path Parameters
- name string required
Responses
- 200
- 401
- 404
strategySchema
- application/json
- Schema
- Example (from schema)
Schema
- title string nullableAn optional title for the strategy 
- name string requiredThe name (type) of the strategy 
- displayName string nullable requiredA human friendly name for the strategy 
- description string nullable requiredA short description of the strategy 
- editable boolean requiredWhether the strategy can be edited or not. Strategies bundled with Unleash cannot be edited. 
- deprecated boolean required
- parameters object[]required- A list of relevant parameters for each strategy Array [name stringtype stringdescription stringrequired boolean]
{
  "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
- id stringThe ID of the error instance 
- name stringThe name of the error kind 
- message stringA description of what went wrong. 
{
  "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."
}
The requested resource was not found.
- application/json
- Schema
- Example (from schema)
Schema
- id stringThe ID of the error instance 
- name stringThe name of the error kind 
- message stringA description of what went wrong. 
{
  "id": "9c40958a-daac-400e-98fb-3bb438567008",
  "name": "NotFoundError",
  "message": "Could not find the addon with ID \"12345\"."
}
Loading...