Skip to main content

Get strategies that use a context field

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

Authorization

name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API

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 string required
Responses

contextFieldStrategiesSchema

Schema
  • strategies object[]required

    List of strategies using the context field

  • Array [
  • id string required

    The ID of the strategy.

  • featureName string required

    The name of the feature that contains this strategy.

  • projectId string required

    The ID of the project that contains this feature.

  • environment string required

    The ID of the environment where this strategy is in.

  • strategyName string required

    The name of the strategy.

  • ]

Authorization

name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API

Request

Base URL
<your-unleash-url>
Security Scheme
apiKey
contextField — path required
curl / cURL
curl -L -X GET '<your-unleash-url>/api/admin/context/:contextField/strategies' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'