Skip to main content

Get strategies that reference segment

GET <your-unleash-url>/api/admin/segments/:id/strategies

Authorization

name: Authorizationtype: apiKeyin: header

Retrieve all strategies that reference the specified segment.

Request

Path Parameters

  • id string required
Responses

segmentStrategiesSchema

Schema
  • strategies object[]required

    The list of strategies

  • Array [
  • id string required

    The ID of the strategy

  • featureName string required

    The name of the feature flag that this strategy belongs to.

  • projectId string required

    The ID of the project that the strategy belongs to.

  • environment string required

    The ID of the environment that the strategy belongs to.

  • strategyName string required

    The name of the strategy's type.

  • ]
  • changeRequestStrategies object[]

    A list of strategies that use this segment in active change requests.

  • Array [
  • id string

    The ID of the strategy. Not present on new strategies that haven't been added to the feature flag yet.

  • featureName string required

    The name of the feature flag that this strategy belongs to.

  • projectId string required

    The ID of the project that the strategy belongs to.

  • environment string required

    The ID of the environment that the strategy belongs to.

  • strategyName string required

    The name of the strategy's type.

  • ]

Authorization

name: Authorizationtype: apiKeyin: header

Request

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