Undo all of a rule's corrections
Removes every correction the rule wrote, across all of its versions, and puts each value back to the one it replaced. The corrections are removed rather than reverted, so each value reads as original again, as it does after undoing a rule run. The call returns at once with the number of corrections the rule still holds, and the work runs in the background. When that number is 0, nothing runs.
A correction inside a reported batch, or one somebody has corrected since, is left in place.
To track the undo, list the rule’s runs with List a rule’s runs. The undo appears there as a run with trigger set to on_demand and state set to reversing, which moves to reversed once it finishes. Its reversal_summary counts the corrections removed as corrections_deleted and the ones left in place as refused. Nothing else on the run marks it as an undo rather than a reversed evaluation.
Authorizations
Response
202
Corrections the rule still held when the request was accepted. This includes corrections inside a reported batch, which the undo then leaves in place, so it is an upper bound on how many will be removed.