---
title: "PUT /api/v1/namespaces/{namespaceKey}/flags/{flagKey}/rules/order"
method: PUT
path: "/api/v1/namespaces/{namespaceKey}/flags/{flagKey}/rules/order"
tags: ["Flipt", "RulesService"]
---

# PUT /api/v1/namespaces/{namespaceKey}/flags/{flagKey}/rules/order

`PUT /api/v1/namespaces/{namespaceKey}/flags/{flagKey}/rules/order`

## Request

- Base URL: `http://localhost:8080`
- URL: `http://localhost:8080/api/v1/namespaces/{namespaceKey}/flags/{flagKey}/rules/order`
- Auth: HTTP bearer

## Path parameters

- `namespaceKey` string, required
- `flagKey` string, required

## Request body

- OrderRulesRequest
  - `flagKey` string
  - `ruleIds` string[], required
  - `namespaceKey` string

## Response `200`

OK

---

[API](https://skmtc.dev/flipt-io/apis/flipt-api.md) - [All operations](https://skmtc.dev/flipt-io/apis/flipt-api/llms.txt) - [OpenAPI document](https://skmtc.dev/flipt-io/apis/flipt-api/revisions/6fe4caf26f13?raw)
