This endpoint updates the value of a Feature Flag or Setting
with a collection of operations in a specified Environment
identified by the passed in the X-CONFIGCAT-SDKKEY header.
Only the value, rolloutRules and percentageRules attributes are modifiable by this endpoint.
The advantage of using JSON Patch is that you can describe individual update operations on a resource without touching attributes that you don't want to change. It supports collection reordering, so it also can be used for reordering the targeting rules of a Feature Flag or Setting.
For example: We have the following resource.
If we send an update request body as below:
Only the default served value is going to be set to true and all the Percentage Rules are remaining unchanged.
So we get a response like this: