v2

latestOpenAPI 3.0.02026-08-073221853.1 MB
Segments

Update Segment Rules

post/console/v1/segments/{id}/conditional

Path parameters

idstring required

id

Request body

namestring required

The name of this rule.

passPercentagenumber required

Of the users that meet the conditions of this rule, what percent should return true.

environmentsstring[] nullable

The environments this rule is enabled for.

idstring

The Statsig ID of this rule.

baseIDstring

The base ID of this rule, i.e. without any added metadata. Will remain the exact same throughout

returnValueobject

The return value of the rule.

Response

Rules Successfully Updated

messagestring required

A simple string explaining the result of the operation.

Example response

{
  "message": "Rules successfully updated"
}