v1
latestOpenAPI 3.0.42026-07-13107171473.3 KBReplace value
This endpoint replaces the value of a Feature Flag or Setting in a specified Environment identified by the <a target="_blank" rel="noopener noreferrer" href="https://app.configcat.com/sdkkey">SDK key</a> passed in the X-CONFIGCAT-SDKKEY header.
Only the value, rolloutRules and percentageRules attributes are modifiable by this endpoint.
Important: As this endpoint is doing a complete replace, it's important to set every other attribute that you don't want to change to its original state. Not listing one means it will reset.
For example: We have the following resource.
{
"rolloutPercentageItems": [
{
"percentage": 30,
"value": true
},
{
"percentage": 70,
"value": false
}
],
"rolloutRules": [],
"value": false
}
If we send a replace request body as below:
{
"value": true
}
Then besides that the default served value is set to true, all the Percentage Rules are deleted. So we get a response like this:
{
"rolloutPercentageItems": [],
"rolloutRules": [],
"value": true
}
Path parameters
The key or id of the Setting.
Query parameters
The reason note for the Audit Log if the Product's "Config changes require a reason" preference is turned on.
Headers
The ConfigCat SDK Key. (https://app.configcat.com/sdkkey)