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"
}

Changes

Changed in 1 of the 8 revisions of this API.12626

  • 1fd471fa03cc12626See the full diff
    • request property items/conditions/items/operator was restricted to a list of enum values

      request-property-became-enum

    • added the new after enum value to the allOf[subschema #2]/data/rules/items/conditions/items/operator response property for the response status 200

      response-property-enum-value-added

    • added the new any enum value to the allOf[subschema #2]/data/rules/items/conditions/items/operator response property for the response status 200

      response-property-enum-value-added

    • added the new any_case_sensitive enum value to the allOf[subschema #2]/data/rules/items/conditions/items/operator response property for the response status 200

      response-property-enum-value-added

    • added the new array_contains_all enum value to the allOf[subschema #2]/data/rules/items/conditions/items/operator response property for the response status 200

      response-property-enum-value-added

    • added the new array_contains_any enum value to the allOf[subschema #2]/data/rules/items/conditions/items/operator response property for the response status 200

      response-property-enum-value-added

    • added the new array_contains_none enum value to the allOf[subschema #2]/data/rules/items/conditions/items/operator response property for the response status 200

      response-property-enum-value-added

    • added the new before enum value to the allOf[subschema #2]/data/rules/items/conditions/items/operator response property for the response status 200

      response-property-enum-value-added

    • added the new encoded_any enum value to the allOf[subschema #2]/data/rules/items/conditions/items/operator response property for the response status 200

      response-property-enum-value-added

    • added the new gt enum value to the allOf[subschema #2]/data/rules/items/conditions/items/operator response property for the response status 200

      response-property-enum-value-added

    • added the new gte enum value to the allOf[subschema #2]/data/rules/items/conditions/items/operator response property for the response status 200

      response-property-enum-value-added

    • added the new is_not_null enum value to the allOf[subschema #2]/data/rules/items/conditions/items/operator response property for the response status 200

      response-property-enum-value-added

    • added the new is_null enum value to the allOf[subschema #2]/data/rules/items/conditions/items/operator response property for the response status 200

      response-property-enum-value-added

    • added the new lt enum value to the allOf[subschema #2]/data/rules/items/conditions/items/operator response property for the response status 200

      response-property-enum-value-added

    • added the new lte enum value to the allOf[subschema #2]/data/rules/items/conditions/items/operator response property for the response status 200

      response-property-enum-value-added

    • added the new none enum value to the allOf[subschema #2]/data/rules/items/conditions/items/operator response property for the response status 200

      response-property-enum-value-added

    • added the new none_case_sensitive enum value to the allOf[subschema #2]/data/rules/items/conditions/items/operator response property for the response status 200

      response-property-enum-value-added

    • added the new not_array_contains_all enum value to the allOf[subschema #2]/data/rules/items/conditions/items/operator response property for the response status 200

      response-property-enum-value-added

    • added the new on enum value to the allOf[subschema #2]/data/rules/items/conditions/items/operator response property for the response status 200

      response-property-enum-value-added

    • added the new str_contains_any enum value to the allOf[subschema #2]/data/rules/items/conditions/items/operator response property for the response status 200

      response-property-enum-value-added

    • added the new str_contains_none enum value to the allOf[subschema #2]/data/rules/items/conditions/items/operator response property for the response status 200

      response-property-enum-value-added

    • added the new str_matches enum value to the allOf[subschema #2]/data/rules/items/conditions/items/operator response property for the response status 200

      response-property-enum-value-added

    • added the new version_eq enum value to the allOf[subschema #2]/data/rules/items/conditions/items/operator response property for the response status 200

      response-property-enum-value-added

    • added the new version_gt enum value to the allOf[subschema #2]/data/rules/items/conditions/items/operator response property for the response status 200

      response-property-enum-value-added

    • added the new version_gte enum value to the allOf[subschema #2]/data/rules/items/conditions/items/operator response property for the response status 200

      response-property-enum-value-added

    • added the new version_lt enum value to the allOf[subschema #2]/data/rules/items/conditions/items/operator response property for the response status 200

      response-property-enum-value-added

    • added the new version_lte enum value to the allOf[subschema #2]/data/rules/items/conditions/items/operator response property for the response status 200

      response-property-enum-value-added

    • added the new after enum value to the request property items/conditions/items/operator

      request-property-enum-value-added

    • added the new any enum value to the request property items/conditions/items/operator

      request-property-enum-value-added

    • added the new any_case_sensitive enum value to the request property items/conditions/items/operator

      request-property-enum-value-added

    • added the new array_contains_all enum value to the request property items/conditions/items/operator

      request-property-enum-value-added

    • added the new array_contains_any enum value to the request property items/conditions/items/operator

      request-property-enum-value-added

    • added the new array_contains_none enum value to the request property items/conditions/items/operator

      request-property-enum-value-added

    • added the new before enum value to the request property items/conditions/items/operator

      request-property-enum-value-added

    • added the new encoded_any enum value to the request property items/conditions/items/operator

      request-property-enum-value-added

    • added the new gt enum value to the request property items/conditions/items/operator

      request-property-enum-value-added

    • added the new gte enum value to the request property items/conditions/items/operator

      request-property-enum-value-added

    • added the new is_not_null enum value to the request property items/conditions/items/operator

      request-property-enum-value-added

    • added the new is_null enum value to the request property items/conditions/items/operator

      request-property-enum-value-added

    • added the new lt enum value to the request property items/conditions/items/operator

      request-property-enum-value-added

    • added the new lte enum value to the request property items/conditions/items/operator

      request-property-enum-value-added

    • added the new none enum value to the request property items/conditions/items/operator

      request-property-enum-value-added

    • added the new none_case_sensitive enum value to the request property items/conditions/items/operator

      request-property-enum-value-added

    • added the new not_array_contains_all enum value to the request property items/conditions/items/operator

      request-property-enum-value-added

    • added the new on enum value to the request property items/conditions/items/operator

      request-property-enum-value-added

    • added the new str_contains_any enum value to the request property items/conditions/items/operator

      request-property-enum-value-added

    • added the new str_contains_none enum value to the request property items/conditions/items/operator

      request-property-enum-value-added

    • added the new str_matches enum value to the request property items/conditions/items/operator

      request-property-enum-value-added

    • added the new version_eq enum value to the request property items/conditions/items/operator

      request-property-enum-value-added

    • added the new version_gt enum value to the request property items/conditions/items/operator

      request-property-enum-value-added

    • added the new version_gte enum value to the request property items/conditions/items/operator

      request-property-enum-value-added

    • added the new version_lt enum value to the request property items/conditions/items/operator

      request-property-enum-value-added

    • added the new version_lte enum value to the request property items/conditions/items/operator

      request-property-enum-value-added