Add an UpdateRequest example to Java API doc

Closes #7083.