Skip to main content

Update a strategy type

PUT 

/api/admin/strategies/:name

Updates the specified strategy type. Any properties not specified in the request body are left untouched.

Request

Path Parameters

    name stringrequired

Body

required

updateStrategySchema

    description string

    A description of the strategy type.

    Example: Enable the feature for users who have not logged in before.

    parameters

    object[]

    required

    The parameter list lets you pass arguments to your custom activation strategy. These will be made available to your custom strategy implementation.

  • Array [

  • name stringrequired

    The name of the parameter

    Example: Rollout percentage
    type stringrequired

    Possible values: [string, percentage, list, number, boolean]

    Example: percentage
    description string

    A description of this strategy parameter. Use this to indicate to the users what the parameter does.

    Example: How many percent of users should see this feature?
    required boolean

    Whether this parameter must be configured when using the strategy. Defaults to false

    Example: false
  • ]

Responses

This response has no body.

Loading...