Skip to main content
PUT
/
projects
/
{projectId}
/
envs
/
{envId}
/
flags
/
{flagId}
/
targeting-rules
/
reorder
Reorder 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
        }
      ]
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

projectId
string<uuid>
required
envId
string<uuid>
required
flagId
string<uuid>
required

Body

application/json
orders
object[]
required

Response

Default Response

statusCode
number
message
string
default:OK
data
object[]