Create a strategy

Creates a custom strategy type based on the supplied data.

Authentication

Authorizationstring
API key needed to access this API
OR
AuthorizationBearer
API key needed to access this API, in Bearer token format

Request

createStrategySchema
namestringRequired
The name of the strategy type. Must be unique.
parameterslist of objectsRequired
The parameter list lets you pass arguments to your custom activation strategy. These will be made available to your custom strategy implementation.
titlestringOptional
The title of the strategy
descriptionstringOptional
A description of the strategy type.
editablebooleanOptional

Whether the strategy type is editable or not. Defaults to true.

deprecatedbooleanOptional

Whether the strategy type is deprecated or not. Defaults to false.

Response headers

locationstring or null
The location of the newly created resource.

Response

The resource was successfully created.
namestring

The name (type) of the strategy

displayNamestring or null
A human friendly name for the strategy
descriptionstring or null
A short description of the strategy
editableboolean
Whether the strategy can be edited or not. Strategies bundled with Unleash cannot be edited.
deprecatedboolean
parameterslist of objects
A list of relevant parameters for each strategy
titlestring or null
An optional title for the strategy

Errors