Skip to main content

Get strategies that use a context field

GET 

<your-unleash-url>/api/admin/context/:contextField/strategies

Retrieves a list of all strategies that use the specified context field. If the context field doesn't exist, returns an empty list of strategies

Request

Path Parameters

    contextField stringrequired

Responses

contextFieldStrategiesSchema

Schema
    strategies object[]required

    List of strategies using the context field

  • Array [
  • idstringrequired

    The ID of the strategy.

    Example: 433ae8d9-dd69-4ad0-bc46-414aedbe9c55
    featureNamestringrequired

    The name of the feature that contains this strategy.

    Example: best-feature
    projectIdstringrequired

    The ID of the project that contains this feature.

    environmentstringrequired

    The ID of the environment where this strategy is in.

    strategyNamestringrequired

    The name of the strategy.

  • ]

Authorization: Authorization

name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API
curl -L '<your-unleash-url>/api/admin/context/:contextField/strategies' \
-H 'Accept: application/json' \
-H 'Authorization: <Authorization>'
Request Collapse all
Base URL
<your-unleash-url>
Auth
Parameters
— pathrequired
ResponseClear

Click the Send API Request button above and see the response here!