Introducing OpenTelemetry for Chargebee SDKs — trace every API call in any telemetry tool.

Remove business rules from a ruleset

Removes one or more business rules from a ruleset without changing any of its other attributes. The rules themselves are not deleted and remain available to other rulesets.

Use this operation to take a rule out of a decision while keeping the rule itself, for example when it has been superseded by another rule in the same ruleset.

Impacts

Business ruleset

The rules are removed from the ruleset and are no longer evaluated when the ruleset is applied, and updated_at and updated_by are set. The name, description, execute_mode, and active attributes of the ruleset are unchanged.

Implementation Notes

Sample Request

Sample Result[JSON]

URL Format

POST https://[site].chargebee.com/api/v2/business_rulesets/{business-ruleset-id}/remove_rules

Input Parameters

rules
optional

The business rules to remove from the ruleset. Each entry takes the rule_id of a rule that currently belongs to the ruleset. Pass the list as a JSON array.

Example → rules = [{"rule_id":"custom-uuid-3"}]

Returns

Business ruleset object

The business ruleset with the rules removed from its membership. The rules themselves are not deleted, and the ruleset's name, description, execute_mode, and active attributes are unchanged.