Is there a way to set currently open map as 'dirty' from c++ manually?

I’m setting some values on instanced actors programatically that then get propagated to instances of objects in the editor code manually (the setup of base classes is done in a way that this isn’t done automatically sadly and I don’t have the authority to change this.

Is there a way to tell editor that the map needs to be saved (so that all this changes can be saved) - as in marking the map currently dirty?