curl --request POST \
--url https://statsigapi.net/console/v1/segments/{id}/conditional \
--header 'Content-Type: application/json' \
--header 'STATSIG-API-KEY: <api-key>' \
--data '
[
{
"name": "<string>",
"passPercentage": 50,
"conditions": [
{
"type": "app_version",
"targetValue": [
"<string>"
],
"operator": "<string>",
"field": "<string>",
"customID": "<string>"
}
],
"environments": [
"<string>"
],
"id": "<string>",
"baseID": "<string>",
"returnValue": {}
}
]
'{
"message": "Rules successfully updated"
}curl --request POST \
--url https://statsigapi.net/console/v1/segments/{id}/conditional \
--header 'Content-Type: application/json' \
--header 'STATSIG-API-KEY: <api-key>' \
--data '
[
{
"name": "<string>",
"passPercentage": 50,
"conditions": [
{
"type": "app_version",
"targetValue": [
"<string>"
],
"operator": "<string>",
"field": "<string>",
"customID": "<string>"
}
],
"environments": [
"<string>"
],
"id": "<string>",
"baseID": "<string>",
"returnValue": {}
}
]
'{
"message": "Rules successfully updated"
}Optional header to respect review settings for mutation endpoints.
id
The name of this rule.
Of the users that meet the conditions of this rule, what percent should return true.
0 <= x <= 100Must be a multiple of 0.01Show child attributes
The environments this rule is enabled for.
The Statsig ID of this rule.
The base ID of this rule, i.e. without any added metadata. Will remain the exact same throughout
The return value of the rule.
Show child attributes