How to refresh after updating contents of current note?

I'm not sure if the whole thing has ever been discussed for put API ... I can't find anything at the moment.

Sorry, but this is not a solution for a plugin!

As a reference how I have solved this in my plugins, if someone is looking for it