POST
/
console
/
v1
/
segments
/
{id}
/
conditional
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"
}

Authorizations

STATSIG-API-KEY
string
header
required

Headers

x-respect-review-settings
string

Optional header to respect review settings for mutation endpoints.

Path Parameters

id
string
required

id

Body

application/json · object[]

The body is of type object[].

Response

200
application/json

Rules Successfully Updated

The response is of type object.