I have a code to create a document into my site using requests.
A POST requests is sent to my site to create new document. After the doc is created I want an after_insert event to run.
The document is created correctly. But the after_insert is not running.
I also have validate and before_insert which both are triggered and run.
Is the after_insert intentionally can’t be used in this scenario?
Or is it a bug?
Or do I have to do something else to trigger the after_insert event?