Skip to main content

Set strategy sort order

POST <your-unleash-url>/api/admin/projects/:projectId/features/:featureName/environments/:environment/strategies/set-sort-order

Authorization

name: Authorizationtype: apiKeyin: header

Set the sort order of the provided list of strategies.

Request

Path Parameters

  • projectId string required
  • featureName string required
  • environment string required

Body

arrayrequired

setStrategySortOrderSchema

  • Array [
  • id string required

    The ID of the strategy

  • sortOrder number required

    The new sort order of the strategy

  • ]
Responses

This response has no body.

Authorization

name: Authorizationtype: apiKeyin: header

Request

Base URL
<your-unleash-url>
apiKey
projectId — path required
featureName — path required
environment — path required
Body required
[
{
"id": "9c40958a-daac-400e-98fb-3bb438567008",
"sortOrder": 1
}
]
curl / cURL
curl -L -X POST '<your-unleash-url>/api/admin/projects/:projectId/features/:featureName/environments/:environment/strategies/set-sort-order' \
-H 'Content-Type: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '[
{
"id": "9c40958a-daac-400e-98fb-3bb438567008",
"sortOrder": 1
}
]'