Skip to main content

Get all strategies

GET 

/api/admin/strategies

Retrieves all strategy types (predefined and custom strategies) that are defined on this Unleash instance.

Responses

strategiesSchema

Schema

    version integerrequired

    Version of the strategies schema

    Possible values: [1]

    Example: 1

    strategies

    object[]

    required

    List of strategies

  • Array [

  • title stringnullable

    An optional title for the strategy

    Example: GradualRollout - Prod25
    name stringrequired

    The name (type) of the strategy

    Example: flexibleRollout
    displayName stringnullablerequired

    A human friendly name for the strategy

    Example: Gradual Rollout
    description stringnullablerequired

    A short description of the strategy

    Example: Gradual rollout to logged in users
    editable booleanrequired

    Whether the strategy can be edited or not. Strategies bundled with Unleash cannot be edited.

    Example: true
    deprecated booleanrequired
    Example: true

    parameters

    object[]

    required

    A list of relevant parameters for each strategy

  • Array [

  • name string
    Example: percentage
    type string
    Example: percentage
    description string
    Example: Gradual rollout to logged in users
    required boolean
    Example: true
  • ]

  • ]

Loading...