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": [
{
"targetValue": [
"<string>"
],
"operator": "<string>",
"field": "<string>",
"customID": "<string>",
"type": "app_version"
}
],
"environments": [
"<string>"
],
"id": "<string>",
"baseID": "<string>",
"returnValue": {}
}
]'
{
"message": "Rules successfully updated"
}
Optional header to respect review settings for mutation endpoints.
id
The body is of type object[]
.
Rules Successfully Updated
The response is of type object
.
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": [
{
"targetValue": [
"<string>"
],
"operator": "<string>",
"field": "<string>",
"customID": "<string>",
"type": "app_version"
}
],
"environments": [
"<string>"
],
"id": "<string>",
"baseID": "<string>",
"returnValue": {}
}
]'
{
"message": "Rules successfully updated"
}