Deletes the draft version of a business rule, permanently discarding every change that has not been released. The released version of the rule is not affected.
Use this operation to abandon a revision you no longer want to release, and to leave the rule serving its released version unchanged.
Prerequisites & Constraints
- The rule must have a draft, created by Update a business rule draft.
Impacts
Business rule
The unreleased changes are discarded and the rule no longer has a draft. latest_version, released_at, released_by, and active are unchanged, and Chargebee keeps evaluating the released version.
The next call to Update a business rule draft starts a fresh draft from the released version.
Implementation Notes
Review the draft with Retrieve a business rule draft before calling this operation, because the unreleased changes cannot be recovered afterwards.
Sample Request
Sample Result[JSON]
URL Format
Returns
The business rule after its draft was discarded, describing the released version that remains in effect.