---
title: "Changes to Update flag targeting for a company"
method: PATCH
path: "/apps/{appId}/envs/{envId}/companies/{companyId}/flags"
---

# Changes to Update flag targeting for a company

`PATCH /apps/{appId}/envs/{envId}/companies/{companyId}/flags`

> Every recorded change to this operation, newest first.

## Timeline

Changed in 2 of 4 revisions.

- **2026-11-06** `280aaed4e96e`: 6 breaking, 6 info
- **2026-09-11** `168d14804058`: 1 warning, 1 info

## Changes

- **2026-11-06** `280aaed4e96e`: 6 breaking, 6 info
  - the response property `data/items/firstExposureAt` became nullable for the status `200`
  - the response property `data/items/firstTrackAt` became nullable for the status `200`
  - the response property `data/items/lastCheckAt` became nullable for the status `200`
  - the response property `data/items/lastExposureAt` became nullable for the status `200`
  - the response property `data/items/lastTrackAt` became nullable for the status `200`
  - the response property `data/items/specificTargetValue` became nullable for the status `200`
  - response property `data/items/firstExposureAt` list-of-types was narrowed by removing types `null` from media type `application/json` of response `200`
  - response property `data/items/firstTrackAt` list-of-types was narrowed by removing types `null` from media type `application/json` of response `200`
  - response property `data/items/lastCheckAt` list-of-types was narrowed by removing types `null` from media type `application/json` of response `200`
  - response property `data/items/lastExposureAt` list-of-types was narrowed by removing types `null` from media type `application/json` of response `200`
  - response property `data/items/lastTrackAt` list-of-types was narrowed by removing types `null` from media type `application/json` of response `200`
  - response property `data/items/specificTargetValue` list-of-types was narrowed by removing types `null` from media type `application/json` of response `200`
- **2026-09-11** `168d14804058`: 1 warning, 1 info
  - for the `path` request parameter `companyId`, the maxLength was set to `128`
  - added the required property `flagStateVersion` to the response with the `200` status

---

[Operation](https://skmtc.dev/reflag/apis/reflag-management-api/docs/apps/:appId/envs/:envId/companies/:companyId/flags/patch.md) - [API](https://skmtc.dev/reflag/apis/reflag-management-api.md) - [Page](https://skmtc.dev/reflag/apis/reflag-management-api/changes/apps/:appId/envs/:envId/companies/:companyId/flags/patch)
