Is it possible to update/refresh the current open document programmatically?

I am thinking in the context of version control. Suppose I have an open active document and then pull down a new version, is it possible to automatically update the current open doc? I was perusing through the api documentation and didn’t see a method to do this: