I'm wondering if it's possible to capture applyEdits of a Feature Service using an SOI? Here's the Rest request I want to intercept: https://developers.arcgis.com/rest/services-reference/apply-edits-feature-service-.htm
But more importantly, I would like to integrate my code in the middle of the edit session. So when doing the edits within an Edit Operation, I want to call other checks. If the checks fail, I need to basically undo the edit operation, and pass back an error message stating it failed. There is a (non-working) example in the SOE samples of basically applying edits using an SOE. So I think I can probably write my code in the middle of this. But that would require me to essentially write all the code that is part of featureService/applyEdits. I was hoping to avoid this. Ideas?
Thanks.