Skip to main content

Set strategy sort order

POST 

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

Set the sort order of the provided list of strategies.

Request

Path Parameters

    projectId stringrequired
    featureName stringrequired
    environment stringrequired

Body arrayrequired

setStrategySortOrderSchema

  • Array [
  • idstringrequired

    The ID of the strategy

    Example: 9c40958a-daac-400e-98fb-3bb438567008
    sortOrdernumberrequired

    The new sort order of the strategy

    Example: 1
  • ]

Responses

This response has no body.

Authorization: Authorization

name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API
curl -L '<your-unleash-url>/api/admin/projects/:projectId/features/:featureName/environments/:environment/strategies/set-sort-order' \
-H 'Content-Type: application/json' \
-H 'Authorization: <Authorization>' \
-d '[
{
"id": "9c40958a-daac-400e-98fb-3bb438567008",
"sortOrder": 1
}
]'
Request Collapse all
Base URL
<your-unleash-url>
Auth
Parameters
— pathrequired
— pathrequired
— pathrequired
Body required
[
  {
    "id": "9c40958a-daac-400e-98fb-3bb438567008",
    "sortOrder": 1
  }
]
ResponseClear

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