---
title: "Changes to Replace the ordered targeting rules of a flag in one environment."
method: PUT
path: "/projects/{project_id}/flags/{key}/environments/{environment_id}/rules"
---

# Changes to Replace the ordered targeting rules of a flag in one environment.

`PUT /projects/{project_id}/flags/{key}/environments/{environment_id}/rules`

> Every recorded change to this operation, newest first.

## Timeline

Changed in 1 of 383 revisions.

- **2026-11-20** `68c970dc603c`: 1 info

## Changes

- **2026-11-20** `68c970dc603c`: 1 info
  - endpoint added

---

[Operation](https://skmtc.dev/gotempsh/apis/temps/docs/projects/:project_id/flags/:key/environments/:environment_id/rules/put.md) - [API](https://skmtc.dev/gotempsh/apis/temps.md) - [Page](https://skmtc.dev/gotempsh/apis/temps/changes/projects/:project_id/flags/:key/environments/:environment_id/rules/put)
