Features
Patch a feature's variants in an environment
Apply a list of patches to the features environments in the specified environment. The patch objects should conform to the JSON-patch format (RFC 6902).
patch/api/admin/projects/{projectId}/features/{featureName}/environments/{environment}/variants
Path parameters
projectIdstring required
featureNamestring required
environmentstring required
Request body
Example request
[
{
"path": "/type",
"op": "replace",
"from": "/type",
"value": "kill-switch"
}
]Response
featureVariantsSchema
Example response
{
"version": 1,
"variants": [
{
"name": "blue_group",
"weightType": "variable",
"stickiness": "custom.context.field",
"payload": {
"type": "json",
"value": "{\"color\": \"red\"}"
},
"overrides": [
{
"contextName": "userId",
"values": [
"red",
"blue"
]
}
]
}
]
}