curl --request PUT \
--url http://localhost:3000/projects/{projectId}/envs/{envId}/flags/{flagId}/targeting-rules/reorder \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"orders": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"order_index": 123
}
]
}
'{
"statusCode": 123,
"message": "OK",
"data": [
{
"orders": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"order_index": 1
}
]
}
]
}Reorder targeting rules for a specific flag.
Access: Org Admins or Editors only.
Use case: Change the evaluation order of targeting rules.
curl --request PUT \
--url http://localhost:3000/projects/{projectId}/envs/{envId}/flags/{flagId}/targeting-rules/reorder \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"orders": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"order_index": 123
}
]
}
'{
"statusCode": 123,
"message": "OK",
"data": [
{
"orders": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"order_index": 1
}
]
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Show child attributes