Revert 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 reverting 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 revert, list the rule’s runs with List a rule’s runs. The revert 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 a revert, so it reads the same as an Evaluate a period run that was later reverted.
Authorizations
Response
202
Corrections the rule still held when the request was accepted. This includes corrections inside a reported batch, which the revert then leaves in place, so it is an upper bound on how many will be removed.