Skip to main content

Get a strategy definition

GET 

/api/admin/strategies/:name

Retrieves the definition of the strategy specified in the URL

Request

Path Parameters

    name stringrequired

Responses

strategySchema

Schema

    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...